Discussion:
[PVE-User] Proxmox VE API
NGUYEN Duc Quan
2012-06-25 14:12:38 UTC
Permalink
Hello,

First off, thank you for the open proxmox ve api. I'm a bit of a newbie regarding proxmox ve but I think this is the Place where I could get help.

I'm currently working with the proxmox ve api for the version 2.1. To read information from the nodes and the vm there's no problem. But I'm stuck at executing actions like reset, start and stop on the vm's. I use the REST API to be independent from any platforms.

Here's an example of the URL I call

https://192.168.0.111:8006/api2/json/nodes/beeprox/qemu/103/status/stop

With the post information:

- the pveauthcookie
- the node name
- and the vmid

The response I get is

{"data":null}

I'm currently logged in as root. So normally I should have all the needed rights.

Did I forgot to implement some special post values? Or did I forgot to activate a flag for REST API in my configs? Or isn't it possible to execute actions on vm's, yet?

I would appreciate any kind of hint.

Thank you very much for your help.


Best regards,

NGUYEN Duc Quan


Nguyen Duc Quan |Mobile Device Developer
***@beewee.lu|www.beewee.lu
+352 20 20 22 75 | 1-3 millewee, L-7257 Walferdange
We create apps, websites and brands.Thank You.
Dietmar Maurer
2012-06-25 16:09:31 UTC
Permalink
The response include a detailed error message. So please post the whole response, including the header.
Post by NGUYEN Duc Quan
The response I get is
{"data":null}
I'm currently logged in as root. So normally I should have all the needed rights.
I guess you forgot to include the CSRFPreventionToken?

- Dietmar

Loading...