Managed Service for MySQL API, gRPC: DatabaseService.List
Retrieves the list of databases in a cluster.
gRPC request
rpc List (ListDatabasesRequest) returns (ListDatabasesResponse)
ListDatabasesRequest
{
"clusterId": "string",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
clusterId |
string Required field. ID of the cluster to list databases in. To get this ID, make a ClusterService.List request. |
pageSize |
int64 The maximum number of results per page to return. If the number of available results is larger than |
pageToken |
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",
"clusterId": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
databases[] |
List of databases. |
nextPageToken |
string The token that can be used to get the next page of results. If the number of results is larger than ListDatabasesRequest.pageSize, 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. |
clusterId |
string ID of the cluster that the database belongs to. |