Atom feed of this document
REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW - 

 Chapter 4. API Operations

[Note]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.

VerbURIDescription
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/instancesCreates a new database instance.
GET/instancesLists 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}/rootEnables the root user for the specified database instance and returns the root password.
GET/instances/{instanceId}/rootReturns true if root user is enabled for the specified database instance or false otherwise.
Database Instance Actions
POST/instances/{instanceId}/actionRestart the database service on the instance.
POST/instances/{instanceId}/actionResize the memory of the instance.
POST/instances/{instanceId}/actionResize the volume attached to the Instance.
Databases
POST/instances/{instanceId}/databasesCreates a new database within the specified instance.
GET/instances/{instanceId}/databasesLists databases for the specified instance.
DELETE/instances/{instanceId}/databases/{databaseName}Deletes the specified database.
Users
POST/instances/{instanceId}/usersCreates a user for the specified database instance.
GET/instances/{instanceId}/usersLists the users in the specified database instance.
PUT/instances/{instanceId}/usersChanges 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}/databasesShows a list of all databases a user has access to.
PUT/instances/{instanceId}/users/{name}/databasesGrant 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/flavorsLists information for all available flavors.
GET/flavors/{flavorId}Lists all flavor information about the specified flavor ID.