[Yandex Cloud documentation](../../../../index.md) > [Yandex StoreDoc](../../../index.md) > API reference > [gRPC](../index.md) > [Database](index.md) > List

# Managed Service for MongoDB API, gRPC: DatabaseService.List

Retrieves the list of MongoDB Database resources in the specified cluster.

## gRPC request

**rpc List ([ListDatabasesRequest](#yandex.cloud.mdb.mongodb.v1.ListDatabasesRequest)) returns ([ListDatabasesResponse](#yandex.cloud.mdb.mongodb.v1.ListDatabasesResponse))**

## ListDatabasesRequest {#yandex.cloud.mdb.mongodb.v1.ListDatabasesRequest}

```json
{
  "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.
To get the cluster ID, use a [ClusterService.List](../Cluster/list.md#List) request.

The maximum string length in characters is 50. ||
|| page_size | **int64**

The maximum number of results per page to return. If the number of available
results is larger than `page_size`, the service returns a [ListDatabasesResponse.next_page_token](#yandex.cloud.mdb.mongodb.v1.ListDatabasesResponse)
that can be used to get the next page of results in subsequent list requests.

The maximum value is 1000. ||
|| page_token | **string**

Page token. To get the next page of results, set `page_token` to the
[ListDatabasesResponse.next_page_token](#yandex.cloud.mdb.mongodb.v1.ListDatabasesResponse) returned by the previous list request.

The maximum string length in characters is 100. ||
|#

## ListDatabasesResponse {#yandex.cloud.mdb.mongodb.v1.ListDatabasesResponse}

```json
{
  "databases": [
    {
      "name": "string",
      "cluster_id": "string",
      "deletion_protection": "google.protobuf.BoolValue"
    }
  ],
  "next_page_token": "string"
}
```

#|
||Field | Description ||
|| databases[] | **[Database](#yandex.cloud.mdb.mongodb.v1.Database)**

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
is larger than [ListDatabasesRequest.page_size](#yandex.cloud.mdb.mongodb.v1.ListDatabasesRequest), use the `next_page_token` as the value
for the [ListDatabasesRequest.page_token](#yandex.cloud.mdb.mongodb.v1.ListDatabasesRequest) parameter in the next list request. Each subsequent
list request will have its own `next_page_token` to continue paging through the results. ||
|#

## Database {#yandex.cloud.mdb.mongodb.v1.Database}

A MongoDB Database resource. For more information, see the
[Developer's Guide](../../../concepts/index.md).

#|
||Field | Description ||
|| name | **string**

Name of the database. ||
|| cluster_id | **string**

ID of the MongoDB cluster that the database belongs to. ||
|| deletion_protection | **[google.protobuf.BoolValue](https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/bool-value)**

Deletion Protection inhibits deletion of the database ||
|#