Managed Service for MongoDB API, REST: User.Get
Returns the specified MongoDB User resource.
To get the list of available MongoDB User resources, make a List request.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-mongodb/v1/clusters/{clusterId}/users/{userName}
Path parameters
|
Field |
Description |
|
clusterId |
string Required field. ID of the MongoDB cluster the user belongs to. |
|
userName |
string Required field. Name of the MongoDB User resource to return. |
Response
HTTP Code: 200 - OK
{
"name": "string",
"clusterId": "string",
"permissions": [
{
"databaseName": "string",
"roles": [
"string"
]
}
]
}
A MongoDB User resource. For more information, see the
Developer's Guide.
|
Field |
Description |
|
name |
string Name of the MongoDB user. |
|
clusterId |
string ID of the MongoDB cluster the user belongs to. |
|
permissions[] |
Set of permissions granted to the user. |
Permission
|
Field |
Description |
|
databaseName |
string Name of the database that the permission grants access to. |
|
roles[] |
string MongoDB roles for the |