Users

The Users resource represents a database user in a Cloud SQL instance. For more information about managing users, see Creating and Managing Users.

For a list of methods for this resource, see the end of this page.

Resource representations

A User resource.

{
  "kind": "sql#user",
  "name": string,
  "etag": etag,
  "host": string,
  "project": string,
  "instance": string,
  "password": string
}
Property name Value Description Notes
etag etag HTTP 1.1 Entity tag for the resource.
host string The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion. writable
instance string The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update since it is already specified on the URL.
kind string This is always sql#user.
name string The name of the user in the Cloud SQL instance. Can be omitted for update since it is already specified on the URL.
password string The password for the user. writable
project string The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update since it is already specified on the URL.

Methods

delete
Deletes a user from a Cloud SQL instance.
insert
Creates a new user in a Cloud SQL instance.
list
Lists users in the specified Cloud SQL instance.
update
Updates an existing user in a Cloud SQL instance.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud SQL for MySQL