cachethq ComponentGroup API
Python - RESTFul interface for CachetHQ Component Group
* /componentgroups: List all component groups.
URI: /componentgroups
Method: GET
* /componentgroup/<group_name>: Create a new group name
URI: /componentgroup/new_group_name
Method: PUT
* /componentgroup/<group_name>: Delete a group name
URI: /componentgroup/new_group_name
Method: DELETE
* /help: Print this help.
URI: /help
Method: GET
curl -s -X PUT http://localhost:8090/componentgroups/test | python -m json.tool { "id": 31 }
curl -s -X GET http://localhost:8090/componentgroups | python -m json.tool [ { "id": 23, "name": "YOUR_CP" }, { "id": 25, "name": "new_cp" }, { "id": 27, "name": "test" } ]
curl -s -X DELETE http://localhost:8090/componentgroups/test | python -m json.tool { "groupname": "test", "status": "deleted" }
All you need is: