Queries the role, type, minor version, and zone of each node in a Tair (Redis OSS-compatible) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeRoleZoneInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. You can call the DescribeInstances operation to query instance IDs. |
r-t4nlenc2p04uvb**** |
| QueryType |
integer |
No |
The type of the node to query. Default value: 1. Valid values:
|
0 |
| PageNumber |
integer |
No |
The page number. Valid values: positive integers. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 10, 20, and 50. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
224B97FB-A275-4EAC-86E9-8922FEA2**** |
| PageNumber |
integer |
The number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
2 |
| Node |
object |
||
| NodeInfo |
array<object> |
Details about each node in the instance. |
|
|
object |
|||
| DefaultBandWidth |
integer |
The default bandwidth of the node. Unit: MB/s. |
96 |
| CurrentMinorVersion |
string |
The minor version of the node. |
redis-5.0_0.3.10 |
| CurrentBandWidth |
integer |
The current bandwidth of the node, which consists of the default bandwidth and the increased bandwidth. Unit: MB/s. Note
|
100 |
| InsType |
integer |
Whether the node is a read replica. A value of 3 indicates a read replica. Note
If the node is not a read replica, no value is returned. |
3 |
| IsLatestVersion |
integer |
Whether the minor version is the latest version. Valid values:
Note
To update the minor version, call the ModifyInstanceMinorVersion operation. |
1 |
| InsName |
string |
The ID of the node. |
r-t4nlenc2p04uvb**** |
| NodeType |
string |
The node type. Valid values:
|
normal |
| ZoneId |
string |
The ID of the zone. |
cn-hangzhou-b |
| IsOpenBandWidthService |
boolean |
Whether the bandwidth of the node is increased. Valid values:
|
true |
| CustinsId |
string |
The ID of the data shard. |
30381**** |
| Role |
string |
The role of the node. Valid values:
|
master |
| NodeId |
string |
Used only for internal instance maintenance. |
10065**** |
Examples
Success response
JSON format
{
"RequestId": "224B97FB-A275-4EAC-86E9-8922FEA2****",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 2,
"Node": {
"NodeInfo": [
{
"DefaultBandWidth": 96,
"CurrentMinorVersion": "redis-5.0_0.3.10",
"CurrentBandWidth": 100,
"InsType": 3,
"IsLatestVersion": 1,
"InsName": "r-t4nlenc2p04uvb****",
"NodeType": "normal",
"ZoneId": "cn-hangzhou-b",
"IsOpenBandWidthService": true,
"CustinsId": "30381****",
"Role": "master",
"NodeId": "10065****"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.