Managed Service for Redis API, REST: Cluster.ListShards
Retrieves a list of shards.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-redis/v1/clusters/{clusterId}/shards
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the Redis cluster to list shards in. |
Query parameters
Field |
Description |
pageSize |
string (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 |
Response
HTTP Code: 200 - OK
{
"shards": [
{
"name": "string",
"clusterId": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
shards[] |
List of Redis shards. |
nextPageToken |
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 Redis shard. The shard name is assigned by user at creation time, and cannot be changed. |
clusterId |
string ID of the Redis cluster the shard belongs to. The ID is assigned by MDB at creation time. |