[PVE-User] Querying the REST API

Dietmar Maurer dietmar at proxmox.com
Sat Dec 17 10:13:36 CET 2011


> 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.
> Here is the problem :
> curl -XGET https://10.0.1.50:8006/api2/cluster
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>501 Method Not Implemented</title>

The correct base url is:

https://10.0.1.50:8006/api2/json/

or if you want html output:

https://10.0.1.50:8006/api2/html/

But you also need to pass the authentication tokens (not documented so far).

- Dietmar






More information about the pve-user mailing list