Managed Service for MySQL API, gRPC: UserService.Get
Retrieves information about the specified user.
gRPC request
rpc Get (GetUserRequest) returns (User)
GetUserRequest
{
"clusterId": "string",
"userName": "string"
}
Field |
Description |
clusterId |
string Required field. ID of the cluster the user belongs to. To get this ID, make a ClusterService.List request. |
userName |
string Required field. Name of the user to return information about. To get this name, make a UserService.List request. |
User
{
"name": "string",
"clusterId": "string",
"permissions": [
{
"databaseName": "string",
"roles": [
"Privilege"
]
}
],
"globalPermissions": [
"GlobalPermission"
],
"connectionLimits": {
"maxQuestionsPerHour": "google.protobuf.Int64Value",
"maxUpdatesPerHour": "google.protobuf.Int64Value",
"maxConnectionsPerHour": "google.protobuf.Int64Value",
"maxUserConnections": "google.protobuf.Int64Value"
},
"authenticationPlugin": "AuthPlugin"
}
An object that represents MySQL user.
See the documentation for details.
Field |
Description |
name |
string Name of the user. |
clusterId |
string ID of the cluster the user belongs to. |
permissions[] |
Set of permissions granted to the user. |
globalPermissions[] |
enum GlobalPermission Set of global permissions to grant to the user.
|
connectionLimits |
Set of user connection limits. |
authenticationPlugin |
enum AuthPlugin User authentication plugin.
|
Permission
Field |
Description |
databaseName |
string Name of the database that the permission grants access to. |
roles[] |
enum Privilege Roles granted to the user within the database. See the documentation for details.
|
ConnectionLimits
Field |
Description |
maxQuestionsPerHour |
The maximum permitted number of user questions per hour. |
maxUpdatesPerHour |
The maximum permitted number of user updates per hour. |
maxConnectionsPerHour |
The maximum permitted number of simultaneous client connections per hour. |
maxUserConnections |
The maximum number of simultaneous connections permitted to any given MySQL user account. |