[PVE-User] Querying the REST API
Germain Maurice
germain.maurice at linkfluence.net
Sat Dec 17 18:02:17 CET 2011
Ok, sorry not "-d" curl option but "-b", it's better now :
{"data":[{"disk":1503238553,"cpu":0.0104831202504817,"name":"vmtest","maxdisk":34359738368,"maxmem":536870912,"node":"pve2test","maxcpu":2,"uptime":79949,"mem":330352532,"id":"qemu/100","type":"qemu","vmid":100},{"disk":829243392,"cpu":0.0119807613316248,"maxdisk":39369293824,"maxmem":6255177728,"node":"pve2test","maxcpu":2,"uptime":84442,"id":"node/pve2test","type":"node","mem":791560192},{"disk":2456453120,"maxdisk":108077916160,"type":"storage","id":"storage/pve2test/local","node":"pve2test","storage":"local"}]}
Another question, PVE 2.0 is still in beta, what about the API, the
routes could change in the future ?
Thank you
Le 17/12/11 17:41, Germain Maurice a écrit :
> Thank you Dietmar, it works better now.
> I got a ticket, however if I do :
> curl -k -d
> "PVEAuthCookie=PVE:root at pam:4EECBED4::Q3Qp4H.....iAtA4a0w=="
> https://10.0.1.50:8006/api2/json/cluster/resources
> I get : {"data":null}
> The same for : "/access/users/root at pam"
> It seems to be the same for all commands, excepting "/access/ticket" :)
>
>
> Le 17/12/11 11:20, Dietmar Maurer a écrit :
>> OK, started some doku at: http://pve.proxmox.com/wiki/Proxmox_VE_API
>>
>> Does that work for you?
>>
>> - Dietmar Maurer
>>> Firstly, i would like to congratulate you for the really good work
>>> you did on PVE
>>> 2.0.
>>>
>>> Secondly, i'm playing with the API and i didn't succeeded to make a
>>> very basic
>>> request.
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list