Melakukan kueri topologi logis instans ApsaraDB for Tair (kompatibel dengan Redis).
Deskripsi operasi
Operasi ini hanya didukung untuk instans dengan arsitektur cluster dan pemisahan baca/tulis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeLogicInstanceTopology |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceId |
string |
ID instans. |
r-bp1zxszhcgatnx**** |
| RequestId |
string |
ID permintaan. |
794120D1-E0CF-4713-BAE4-EBAEA04506AF |
| RedisProxyList |
object |
||
| NodeInfo |
array<object> |
Detail proxy, termasuk informasi tentang node proxy. |
|
|
object |
|||
| Capacity |
string |
The storage capacity of the node. Unit: MB. |
5120 |
| Connection |
string |
The maximum number of connections. |
320000 |
| NodeType |
string |
The node type. Valid values:
|
proxy |
| Bandwidth |
string |
The bandwidth throttling of the node. Unit: MB/s. |
96 |
| NodeId |
string |
The ID of the node. |
r-bp10noxlhcoim2****-proxy-3#542**** |
| RedisShardList |
object |
||
| NodeInfo |
array<object> |
Detail shard, termasuk informasi tentang subnode seperti NodeInfo. |
|
|
object |
|||
| Capacity |
string |
The storage capacity of the node. Unit: MB. |
2048 |
| Connection |
string |
The maximum number of connections. |
10000 |
| NodeType |
string |
The node type. Valid values:
|
db |
| Bandwidth |
string |
The bandwidth throttling of the node. Unit: MB/s. |
96 |
| NodeId |
string |
The ID of the node. |
r-bp10noxlhcoim2****-db-0#688**** |
| SubInstanceType |
string |
子实例类型,返回值:
|
master |
Contoh
Respons sukses
JSONformat
{
"InstanceId": "r-bp1zxszhcgatnx****",
"RequestId": "794120D1-E0CF-4713-BAE4-EBAEA04506AF",
"RedisProxyList": {
"NodeInfo": [
{
"Capacity": "5120",
"Connection": "320000",
"NodeType": "proxy",
"Bandwidth": "96",
"NodeId": "r-bp10noxlhcoim2****-proxy-3#542****"
}
]
},
"RedisShardList": {
"NodeInfo": [
{
"Capacity": "2048",
"Connection": "10000",
"NodeType": "db",
"Bandwidth": "96",
"NodeId": "r-bp10noxlhcoim2****-db-0#688****",
"SubInstanceType": "master"
}
]
}
}
Respons error
JSONformat
{
"RedisShardList":
{"NodeInfo":[{
"NodeId":"r-xxxxxxxxxxxxxxx-proxy-3#5425423",
"NodeType":"proxy",
"Capacity":"5120",
"Connection":"320000",
"Bandwidth":96
}]},
"InstanceId":"r-xxxxxxxxxxxxxxx",
"RequestId":"5F749626-2B6A-4DC2-A010-B51F7C33084E"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.