Queries the information of an ApsaraDB for Redis instance deployed in a dedicated cluster.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
kvstore:DescribeDedicatedClusterInstanceList | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ZoneId | string | No | The zone ID of the instance. You can call the DescribeZones operation to query the most recent zone list. | 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 view the dedicated cluster ID on the Dedicated Clusters page in 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. You can call the DescribeDedicatedHosts operation to query the host ID. Note
Separate multiple IDs with commas (,).
| ch-t4n664a9mal4c**** |
PageNumber | integer | No | The number of the page to return. The value must be an integer that is 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 parameters
Examples
Sample success responses
JSON
format
{
"PageNumber": 1,
"PageSize": 30,
"RequestId": "712CCF2A-16BD-411B-93F7-E978BEF2****",
"TotalCount": 1,
"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
For a list of error codes, visit the Service error codes.