Managed Service for ClickHouse API, gRPC: ClusterService.ListShardGroups
Retrieves a list of shard groups that belong to specified cluster.
gRPC request
rpc ListShardGroups (ListClusterShardGroupsRequest) returns (ListClusterShardGroupsResponse)
ListClusterShardGroupsRequest
{
"cluster_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the cluster that the shard group belongs to. To get the cluster 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. To get the next page of results, set |
ListClusterShardGroupsResponse
{
"shard_groups": [
{
"name": "string",
"cluster_id": "string",
"description": "string",
"shard_names": [
"string"
]
}
],
"next_page_token": "string"
}
Field |
Description |
shard_groups[] |
List of ClickHouse cluster's shard groups. |
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 ListClusterShardGroupsRequest.page_size, use the |
ShardGroup
Field |
Description |
name |
string Name of the shard group. |
cluster_id |
string ID of the ClickHouse cluster that the shard group belongs to. |
description |
string Description of the shard group. 0-256 characters long. |
shard_names[] |
string List of shard names contained in the shard group. |