Managed Service for Redis API, gRPC: ClusterService.ListShards
Retrieves a list of shards.
gRPC request
rpc ListShards (ListClusterShardsRequest) returns (ListClusterShardsResponse)
ListClusterShardsRequest
{
"cluster_id": "string",
"page_size": "int64",
"page_token": "string"
}
|
Field |
Description |
|
cluster_id |
string Required field. ID of the Valkey cluster to list shards in. The maximum string length in characters is 50. |
|
page_size |
int64 The maximum number of results per page to return. If the number of available The maximum value is 1000. |
|
page_token |
string Page token. To get the next page of results, set The maximum string length in characters is 100. |
ListClusterShardsResponse
{
"shards": [
{
"name": "string",
"cluster_id": "string",
"is_ha": "bool"
}
],
"next_page_token": "string"
}
|
Field |
Description |
|
shards[] |
List of Valkey shards. |
|
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
Shard
|
Field |
Description |
|
name |
string Name of the Valkey shard. The shard name is assigned by user at creation time, and cannot be changed. |
|
cluster_id |
string ID of the Valkey cluster the shard belongs to. The ID is assigned by MDB at creation time. |
|
is_ha |
bool Indicates whether the shard topology is highly available as defined by the Yandex Cloud SLA for managed databases. |