[pve-devel] way to get all vm configs?

Dietmar Maurer dietmar at proxmox.com
Fri Dec 6 11:26:46 CET 2013


> > yeah but still how do arrays and hashes be encoded? The key and values
> > are url encoded - sure but how are values of type array encoded?
> 
> Oh, I guess easiest way would be to add the ability to post 'JSON' data (use
> application/json instead of application/x-www-form-urlencoded)
> 
> see HTTPServer::extract_params()

For testing, you can simply pass a JSON encoded string:

commands => "JSON_STRING"

You can the simple encode the string inside you API call.

We can add support to post JSON data later.
 





More information about the pve-devel mailing list