You use the REST API by sending HTTP requests to the URL http:///server-name:8000/api/1.0/ of a server running the deployment manager. The following table lists the currently supported REST objects and methods.
Table 5.1. REST API Objects and Methods
URI | GET | POST | PUT | DELETE |
---|---|---|---|---|
/api/1.0/databases/ | List databases | Add database | ||
/api/1.0/databases/{id} | Database object | Update database properties | Delete database | |
/api/1.0/databases/{id}/deployment | Database deployment that will be used. | Update deployment properties | ||
/api/1.0/databases/{id}/status | Get Status of database | |||
/api/1.0/databases/{id}/start | Start Database | |||
/api/1.0/databases/{id}/recover | Recovers database | |||
/api/1.0/databases/{id}/stop | Stops database | |||
/api/1.0/databases/{id}/servers/ | Get Server list from database | Add Server | ||
/api/1.0/databases/{id}/servers/{id}/ | Get Server Details of a database | Update | Remove Server | |
/api/1.0/databases/{id}/servers/{id}/start | Start a Node of a Database (Always do rejoin) | |||
/api/1.0/databases/{id}/servers/{id}/stop | Stop a Node of a Database | |||
/api/1.0/databases/{id}/servers/{id}/status | Get Status of node. |