[PVE-User] 2.0 API, delete qemu image??
guy at britewhite.net
Tue Jun 5 00:05:21 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?
On 4 Jun 2012, at 16:35, Dietmar Maurer wrote:
>> How do I delete a QEMU image? via pvesh I can use delete
>> notes/<node>/qemu/<QMID> but I don't see an equivalent in the API docs.
> pvesh is the API. And the call is also documented in the API docs.
> So what do you miss exactly?
>> I'd also like to be able to restore an image from a backup via the API! Can
>> anyone suggest how to do this, short of SSHing over to the server and issuing
>> the commands please? :)
> The 'PUSH nodes/<node>/qemu' API has an 'archive' parameter.
> (create and restore is the same API).
> - Dietmar
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4885 bytes
Desc: not available
More information about the pve-user