Managed Service for MySQL API, gRPC: UserService.Get
Retrieves information about the specified user.
gRPC request
rpc Get (GetUserRequest) returns (User)
GetUserRequest
{
"cluster_id": "string",
"user_name": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the cluster the user belongs to. To get this ID, make a ClusterService.List request. |
user_name |
string Required field. Name of the user to return information about. To get this name, make a UserService.List request. |
User
{
"name": "string",
"cluster_id": "string",
"permissions": [
{
"database_name": "string",
"roles": [
"Privilege"
]
}
],
"global_permissions": [
"GlobalPermission"
],
"connection_limits": {
"max_questions_per_hour": "google.protobuf.Int64Value",
"max_updates_per_hour": "google.protobuf.Int64Value",
"max_connections_per_hour": "google.protobuf.Int64Value",
"max_user_connections": "google.protobuf.Int64Value"
},
"authentication_plugin": "AuthPlugin"
}
An object that represents MySQL user.
See the documentation for details.
Field |
Description |
name |
string Name of the user. |
cluster_id |
string ID of the cluster the user belongs to. |
permissions[] |
Set of permissions granted to the user. |
global_permissions[] |
enum GlobalPermission Set of global permissions to grant to the user.
|
connection_limits |
Set of user connection limits. |
authentication_plugin |
enum AuthPlugin User authentication plugin.
|
Permission
Field |
Description |
database_name |
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 |
max_questions_per_hour |
The maximum permitted number of user questions per hour. |
max_updates_per_hour |
The maximum permitted number of user updates per hour. |
max_connections_per_hour |
The maximum permitted number of simultaneous client connections per hour. |
max_user_connections |
The maximum number of simultaneous connections permitted to any given MySQL user account. |