Atom feed of this document
 
 
 

 4.5. Users

This section describes the operations that are supported for managing database users.

In this section, "user has access to a database" means that the user has full create, read, update, and delete access to the given database. In other words, on a cloud database instance, a user named USER and a database named DATABASE exist, and within MySQL, a GRANT ALL ON DATABASE.* TO USER has been issued on the instance.

VerbURIDescription
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}/databasesGrants access for the specified user to one or more databases for the specified instance.
DELETE/instances/{instanceId}/users/{name}/databases/{databaseName}Removes access to the specified database for the specified user.