[PVE-User] 2.0 API, delete qemu image??
Guy
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?
Thanks
---Guy
On 4 Jun 2012, at 16:35, Dietmar Maurer wrote:
>> http://pve.proxmox.com/pve2-api-doc/
>>
>> 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...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4885 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20120604/168d0937/attachment.bin>
More information about the pve-user
mailing list