Managed Service for MongoDB API, REST: Database.get
Written by
Updated at May 26, 2023
Returns the specified MongoDB Database resource.
To get the list of available MongoDB Database resources, make a list request.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-mongodb/v1/clusters/{clusterId}/databases/{databaseName}
Path parameters
Parameter | Description |
---|---|
clusterId | Required. ID of the MongoDB cluster that the database belongs to. To get the cluster ID use a list request. The maximum string length in characters is 50. |
databaseName | Required. Name of the MongoDB database to return. To get the name of the database use a list request. The maximum string length in characters is 63. Value must match the regular expression |
Response
HTTP Code: 200 - OK
{
"name": "string",
"clusterId": "string"
}
A MongoDB Database resource. For more information, see the
Developer's Guide.
Field | Description |
---|---|
name | string Name of the database. |
clusterId | string ID of the MongoDB cluster that the database belongs to. |