HTTP Method |
End point |
Meaning |
Example |
GET |
/v1 |
Get a list(newline separated) of all namespaces |
|
PUT/POST/DELETE |
/v1 |
Not Supported |
|
GET |
/v1/namespace |
Get a list(newline separated) of all keys in the namespace |
/v1/hosts |
PUT/POST/DELETE |
/v1/namespace |
Not Supported |
|
GET |
/v1/namespace/key |
Get config for a particular key |
/v1/tags/web_servers |
PUT |
/v1/namespace/key |
Create a new key. Overwrite existing. |
/v1/tags/DB_servers PUTDATA: value=uri_escaped_yaml_data |
POST |
/v1/namespace/key |
Rename a key |
/v1/hosts/server1.yourdomain.com POSTDATA: newname=server2.yourdomain.com.com |
DELETE |
/v1/namespace/key |
Delete a key and all its meta information. |
/v1/tags/testtag |
GET |
/v1/namespace/key/members |
Get members of a key as a list expanding all inherited members. |
/v1/tags/web_servers/members |
GET |
/v1/namespace/key/members?raw=true |
Get members in raw format. Does not expand inherited members. |
/v1/tags/web_servers/members?raw=true |
PUT |
/v1/namespace/key/members |
Set members of a key (raw format) |
/v1/tags/web_servers/members PUTDATA: value=uri_escaped_list |
POST |
/v1/namespace/key/members |
Not Supported |
|
DELETE |
/v1/namespace/key/members |
Delete all members |
/v1/tags/web_servers/members |
GET |
/v1/namespace/key/members/hostname |
Just returns hostname if it exists in members |
/v1/tags/VM/testVM1 |
PUT |
/v1/namespace/key/members/hostname |
Add a member |
/v1/tags/VM/testVM1 |
POST |
/v1/namespace/key/members/hostname |
Rename a member |
/v1/tags/VM/testVM1 POSTDATA: newname=testVM2 |
DELETE |
/v1/namespace/key/members/hostname |
Delete a member |
/v1/tags/VM/testVM2 |
GET |
/v1/namespace/key/config[/config/…] |
Get a specific item inside key’s config |
/v1/hosts/server1.yourdomain.com/Network |
PUT |
/v1/namespace/key/config[/config/…] |
Set a specific item inside key’s config |
/v1/hosts/server1.yourdomain.com/Network PUTDATA: value=uri_escaped_yaml_data |
POST |
/v1/namespace/key/config[/config/…] |
Rename a specific item inside key’s config |
/v1/hosts/server1.yourdomain.com/Network/CNAME POSTDATA: newname=cname |
DELETE |
/v1/namespace/key/config[/config/…] |
Delete a specific item inside key’s config |
/v1/hosts/server1.yourdomain.com/Network/IP |