GET /v1/projects/{project}/instances/{instance}/users/{name}
Changed onRetrieves a resource containing information about a user.
Request
- Base URLhttps://sqladmin.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/sqlservice.adminAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/sqlservice.admin
Path parameters
Project ID of the project that contains the instance.
Database instance ID. This does not include the project ID.
User of the instance.
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Host of a user of the instance.
Optional. Region of the Cloud SQL instance.
Response
Successful response
A Cloud SQL user resource.
Optional. Role memberships of the user
Dual password status for the user.
This field is deprecated and will be removed from a future version of the API.
Optional. The host 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. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.
Indicates if a group is active or inactive for IAM database authentication.
The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
This is always sql#user.
The name of the user in the Cloud SQL instance. Can be omitted for update because it is already specified in the URL.
The password for the user.
User level password validation policy.
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
Optional. The server roles for the SQL Server login.
Represents a Sql Server user on the Cloud SQL instance.
The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/sqlservice.adminwas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info