users
Updates an existing user in a Cloud SQL instance.
put/v1/projects/{project}/instances/{instance}/users
Path parameters
projectstring required
Project ID of the project that contains the instance.
instancestring required
Database instance ID. This does not include the project ID.
Query parameters
databaseRolesstring[]
Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.
hoststring
Optional. Host of the user in the instance.
namestring
Name of the user in the instance.
revokeExistingRolesboolean
Optional. Specifies whether to revoke existing roles that are not present in the database_roles field. If false or unset, the database roles specified in database_roles are added to the user's existing roles.
Request body
Response
Successful response