Managed Service for MySQL API, gRPC: DatabaseService.List
Retrieves the list of databases in a 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 cluster to list databases in. To get this ID, make a ClusterService.List request. |
page_size |
int64 The maximum number of results per page to return. If the number of available results is larger than |
page_token |
string Page token that can be used to iterate through multiple pages of results. To get the next page of results, set |
ListDatabasesResponse
{
"databases": [
{
"name": "string",
"cluster_id": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
databases[] |
List of databases. |
next_page_token |
string The token that can be used to get the next page of results. If the number of results is larger than ListDatabasesRequest.page_size, use the Each of the subsequent DatabaseService.List requests should use the |
Database
An object that represents MySQL database.
See the documentation for details.
Field |
Description |
name |
string Name of the database. |
cluster_id |
string ID of the cluster that the database belongs to. |