Queries Tair (Redis OSS-compatible) instances deployed in a dedicated cluster.
Operation description
To query Tair (Redis OSS-compatible) instances that are not deployed in a dedicated cluster, call the DescribeInstanceAttribute operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeDedicatedClusterInstanceList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. Call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID of the instance. Call the DescribeZones operation to query available zones. |
cn-hangzhou-e |
| InstanceId |
string |
No |
The ID of the instance. Note
The instance must be created by using a dedicated cluster. For more information, see What is ApsaraDB for MyBase? |
r-bp1zxszhcgatnx**** |
| InstanceStatus |
integer |
No |
The state of the instance. Valid values:
|
1 |
| InstanceNetType |
string |
No |
The network type of the instance. Valid values:
|
2 |
| Engine |
string |
No |
The database engine of the instance. Set the value to Redis. |
Redis |
| EngineVersion |
string |
No |
The database engine version of the instance. Set the value to 5.0. |
5.0 |
| ClusterId |
string |
No |
The ID of the dedicated cluster. You can find this ID on the Dedicated Clusters page of the ApsaraDB for MyBase console. Note
Separate multiple IDs with commas (,). |
dhg-5f2v98840ioq**** |
| DedicatedHostName |
string |
No |
The ID of the host in the dedicated cluster. Call the DescribeDedicatedHosts operation to query host IDs. Note
Separate multiple IDs with commas (,). |
ch-t4n664a9mal4c**** |
| PageNumber |
integer |
No |
The page number to return. The value must be an integer greater than 0. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries per page. |
25 |
| RequestId |
string |
The ID of the request. |
712CCF2A-16BD-411B-93F7-E978BEF2**** |
| TotalCount |
integer |
The total number of entries returned. |
0 |
| Instances |
array<object> |
Details about the instances. |
|
|
array<object> |
Details about the instance. |
||
| VpcId |
string |
The VPC ID. |
vpc-t4n2clc70t3hqwsrr**** |
| CharacterType |
string |
The architecture of the instance. Valid values:
|
logic |
| VswitchId |
string |
The vSwitch ID. |
vsw-t4nvrca24dczppq44**** |
| InstanceClass |
string |
The instance type. |
redis.cluster.sharding.common.ce |
| MaintainStartTime |
string |
The start time of the maintenance window. The time is in the HH:mmZ format. The time is displayed in UTC. |
16:00Z |
| CreateTime |
string |
The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2021-05-06T07:09:40Z |
| ConnectionDomain |
string |
The private endpoint of the instance. |
r-t4ncdi1dgi0ja8****.redis.hangzhou.rds.aliyuncs.com |
| MaintainEndTime |
string |
The end time of the maintenance window. The time is in the HH:mmZ format. The time is displayed in UTC. |
17:00Z |
| StorageType |
string |
The storage type of the instance. The return value is LOCAL_SSD, which indicates enhanced SSDs (ESSDs). |
LOCAL_SSD |
| InstanceId |
string |
The ID of the instance. |
r-bp1e7vl6ygf1yq**** |
| BandWidth |
integer |
The default bandwidth of the instance. Unit: Mbit/s. |
24 |
| CurrentBandWidth |
integer |
The current bandwidth of the instance, which is the sum of the default bandwidth and any purchased extra bandwidth. Unit: Mbit/s. |
50 |
| EngineVersion |
string |
The database engine version of the instance. The return value is 5.0. |
5.0 |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| InstanceName |
string |
The instance name. |
testdb |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-e |
| ClusterName |
string |
The name of the dedicated cluster to which the instance belongs. |
testname |
| InstanceStatus |
string |
The state of the instance. Valid values:
|
Normal |
| Engine |
string |
The database engine. The return value is redis. |
redis |
| ShardCount |
integer |
The number of shards. Note
This parameter is returned only when the instance is a cluster instance. |
3 |
| CustomId |
string |
An internal parameter for instance maintenance and management. |
4652**** |
| ProxyCount |
integer |
The number of proxy nodes. Note
|
1 |
| ClusterId |
string |
The ID of the dedicated cluster to which the instance belongs. |
dhg-rx71fc5ndh9o**** |
| InstanceNodeList |
array<object> |
Details about the nodes. |
|
|
object |
Details about the node. |
||
| NodeIp |
string |
The IP address of the node. |
10.0.33.*** |
| DedicatedHostName |
string |
The ID of the host in the dedicated cluster. |
ch-bp13vf0y9gx3c**** |
| NodeType |
string |
The node type. Valid values:
|
normal |
| ZoneId |
string |
The zone ID of the node. |
cn-hangzhou-h |
| InstanceId |
string |
The ID of the instance. |
r-bp1e7vl6ygf1yq**** |
| Port |
integer |
The port used to connect to the node. |
3001 |
| Role |
string |
The role of the node. Valid values:
|
master |
| NodeId |
integer |
The node ID. |
17921111 |
Examples
Success response
JSON format
{
"PageNumber": 1,
"PageSize": 25,
"RequestId": "712CCF2A-16BD-411B-93F7-E978BEF2****",
"TotalCount": 0,
"Instances": [
{
"VpcId": "vpc-t4n2clc70t3hqwsrr****",
"CharacterType": "logic",
"VswitchId": "vsw-t4nvrca24dczppq44****",
"InstanceClass": "redis.cluster.sharding.common.ce",
"MaintainStartTime": "16:00Z",
"CreateTime": "2021-05-06T07:09:40Z",
"ConnectionDomain": "r-t4ncdi1dgi0ja8****.redis.hangzhou.rds.aliyuncs.com",
"MaintainEndTime": "17:00Z",
"StorageType": "LOCAL_SSD",
"InstanceId": "r-bp1e7vl6ygf1yq****",
"BandWidth": 24,
"CurrentBandWidth": 50,
"EngineVersion": "5.0",
"RegionId": "cn-hangzhou",
"InstanceName": "testdb",
"ZoneId": "cn-hangzhou-e",
"ClusterName": "testname",
"InstanceStatus": "Normal",
"Engine": "redis",
"ShardCount": 3,
"CustomId": "4652****",
"ProxyCount": 1,
"ClusterId": "dhg-rx71fc5ndh9o****",
"InstanceNodeList": [
{
"NodeIp": "10.0.33.***",
"DedicatedHostName": "ch-bp13vf0y9gx3c****",
"NodeType": "normal",
"ZoneId": "cn-hangzhou-h",
"InstanceId": "r-bp1e7vl6ygf1yq****",
"Port": 3001,
"Role": "master",
"NodeId": 17921111
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.