[PVE-User] REST api usage

Jonathan Schaeffer jonathan.schaeffer at univ-brest.fr
Fri Mar 29 13:45:20 CET 2013


Le 27/03/2013 14:25, Jonathan Schaeffer a écrit :
> Hi,
>
> I'd like to use the REST API to migrate a node (for instance).
>
> Following the doc on the wiki
> (http://pve.proxmox.com/wiki/Proxmox_VE_API), I managed to get the
> ticket and the CSR prevention token and run some basic commands with it.
>
> But I don't know how to specify the [OPTIONS] fields on my REST URL,
> like required on a migrate command :
> create /nodes/{node}/qemu/{vmid}/migrate -target <string> [OPTIONS]
>
> I'm using python's requests module to do that, but an example with curl
> would be very helpful too.
>
> By the way the URL given in the wiki
> http://pve.proxmox.com/pve2-api-doc/ is blank.

Hello,

Another API question, how to use this commande :

set /nodes/{node}/qemu/{vmid}/config  [OPTIONS]

to remove a device (let say the CDROM) ?


-- 
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94



More information about the pve-user mailing list