Managed Service for MySQL API, REST: User.Get
Retrieves information about the specified user.
HTTP request
GET https://mdb.api.yandexcloud.kz/managed-mysql/v1/clusters/{clusterId}/users/{userName}
Path parameters
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. |
Response
HTTP Code: 200 - OK
{
"name": "string",
"clusterId": "string",
"permissions": [
{
"databaseName": "string",
"roles": [
"string"
]
}
],
"globalPermissions": [
"string"
],
"connectionLimits": {
"maxQuestionsPerHour": "string",
"maxUpdatesPerHour": "string",
"maxConnectionsPerHour": "string",
"maxUserConnections": "string"
},
"authenticationPlugin": "string"
}
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 |
string (int64) The maximum permitted number of user questions per hour. |
maxUpdatesPerHour |
string (int64) The maximum permitted number of user updates per hour. |
maxConnectionsPerHour |
string (int64) The maximum permitted number of simultaneous client connections per hour. |
maxUserConnections |
string (int64) The maximum number of simultaneous connections permitted to any given MySQL user account. |