Managed Service for MySQL API, gRPC: UserService.List
Retrieves the list of users in a cluster.
gRPC request
rpc List (ListUsersRequest) returns (ListUsersResponse)
ListUsersRequest
{
"cluster_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the cluster to list the users in. To get this ID, make a ClusterService.List request. |
page_size |
int64 The maximum number of results per page to return. If the number of available results is larger than |
page_token |
string Page token that can be used to iterate through multiple pages of results. To get the next page of results, set |
ListUsersResponse
{
"users": [
{
"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"
}
],
"next_page_token": "string"
}
Field |
Description |
users[] |
List of users. |
next_page_token |
string The token that can be used to get the next page of results. If the number of results is larger than ListUsersRequest.page_size, use the Each of the subsequent UserService.List requests should use the |
User
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. |