Melakukan kueri peran, jenis, versi minor, dan zona dari setiap node dalam instance ApsaraDB for Tair (kompatibel dengan Redis OSS).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeRoleZoneInfo |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance. Anda dapat memanggil operasi DescribeInstances untuk melakukan kueri ID dari instance. |
r-t4nlenc2p04uvb**** |
| QueryType |
integer |
No |
Jenis node yang ingin Anda kueri. Nilai yang valid:
|
0 |
| PageNumber |
integer |
No |
Nomor halaman. Nilainya harus lebih besar dari 0 dan tidak boleh melebihi nilai maksimum yang didukung oleh tipe data Integer. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai yang valid: 10, 20, dan 50. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
224B97FB-A275-4EAC-86E9-8922FEA2**** |
| PageNumber |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
10 |
| TotalCount |
integer |
Jumlah total entri yang dikembalikan. |
2 |
| Node |
object |
||
| NodeInfo |
array<object> |
Detail dari setiap node dalam 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. Catatan
|
100 |
| InsType |
integer |
Indicates whether the node is a read replica. If the node is a read replica, 3 is returned. Catatan
If the node is not a read replica, no value is returned. |
3 |
| IsLatestVersion |
integer |
Indicates whether the minor version is the latest version. Valid values:
Catatan
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 |
Indicates 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 |
This parameter is used only for internal maintenance of instances. |
10065**** |
Contoh
Respons sukses
JSONformat
{
"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****"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.