[PVE-User] 2.0 API, delete qemu image??

Dietmar Maurer dietmar at proxmox.com
Tue Jun 5 06:07:02 CEST 2012


> Ok for example... I use this curl command to  start a QEMU..
> 
> curl -s -k -XPOST -H 'CSRFPreventionToken:$CSRFPreventionToken'
> '$host/api2/json/nodes/$PVEName/qemu/$VMID/status/start' -b
> 'PVEAuthCookie=$key'
> 
> 
> Can you give me the equivalent command to delete or to restore a backup?

For example, to delete a VM use:

curl -s -k -XDELETE -H 'CSRFPreventionToken:$CSRFPreventionToken' $host/api2/json/nodes/$PVEName/qemu/$VMID' -b 'PVEAuthCookie=$key'

- Dietmar




More information about the pve-user mailing list