REVIEW - REVIEW - REVIEW - REVIEW - REVIEW - REVIEW - REVIEW - REVIEW -
Contents
![]() | Note |
---|---|
Do not use trailing slashes (/) at the end of calls to API operations, since this may cause the call to fail. For example, do not use GET /instances/detail/ (with the trailing slash at the end). Rather, use GET /instances/detail instead. |
Verb | URI | Description |
---|---|---|
API Versions | ||
GET | / | Lists information about all versions of the API. |
GET | /{version} | Returns detailed information about the specified version of the API. |
Database Instances | ||
POST | /instances | Creates a new database instance. |
GET | /instances | Lists the status and information for all database instances. |
GET | /instances/{instanceId} | Lists status and details for a specified database instance. |
DELETE | /instances/{instanceId} | Deletes the specified database instance. |
POST | /instances/{instanceId}/root | Enables the root user for the specified database instance and returns the root password. |
GET | /instances/{instanceId}/root | Returns true if root user is enabled for the specified database instance or false otherwise. |
Database Instance Actions | ||
POST | /instances/{instanceId}/action | Restart the database service on the instance. |
POST | /instances/{instanceId}/action | Resize the memory of the instance. |
POST | /instances/{instanceId}/action | Resize the volume attached to the Instance. |
Databases | ||
POST | /instances/{instanceId}/databases | Creates a new database within the specified instance. |
GET | /instances/{instanceId}/databases | Lists databases for the specified instance. |
DELETE | /instances/{instanceId}/databases/{databaseName} | Deletes the specified database. |
Users | ||
POST | /instances/{instanceId}/users | Creates a user for the specified database instance. |
GET | /instances/{instanceId}/users | Lists the users in the specified database instance. |
PUT | /instances/{instanceId}/users | Changes the MySQL password of one or more users. |
GET | /instances/{instanceId}/users/{name} | Lists the specified user's name and a list of databases that the user can access. |
DELETE | /instances/{instanceId}/users/{name} | Deletes the user identified by {name} for the specified database instance. |
GET | /instances/{instanceId}/users/{name}/databases | Shows a list of all databases a user has access to. |
PUT | /instances/{instanceId}/users/{name}/databases | Grant access for the specified user to one or more databases for the specified instance. |
DELETE | /instances/{instanceId}/users/{name}/databases/{databaseName} | Remove access to the specified database for the specified user. |
Flavors | ||
GET | /flavors | Lists information for all available flavors. |
GET | /flavors/{flavorId} | Lists all flavor information about the specified flavor ID. |