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