Managed Service for MongoDB API, gRPC: DatabaseService.List
Retrieves the list of MongoDB Database resources in the specified cluster.
gRPC request
rpc List (ListDatabasesRequest) returns (ListDatabasesResponse)
ListDatabasesRequest
{
"cluster_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the MongoDB cluster to list databases in. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, set |
ListDatabasesResponse
{
"databases": [
{
"name": "string",
"cluster_id": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
databases[] |
List of MongoDB databases. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
Database
A MongoDB Database resource. For more information, see the
Developer's Guide.
Field |
Description |
name |
string Name of the database. |
cluster_id |
string ID of the MongoDB cluster that the database belongs to. |