Managed Service for MySQL API, REST: Database.List
Retrieves the list of databases in a cluster.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-mysql/v1/clusters/{clusterId}/databases
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the cluster to list databases in. To get this ID, make a ClusterService.List request. |
Query parameters
Field |
Description |
pageSize |
string (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 |
Response
HTTP Code: 200 - OK
{
"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. |