Queries the information of one or more Tair (Redis® OSS-Compatible) instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeInstances |
list |
DBInstance
DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the instance. Note
When you call this operation, if the Tag parameter is specified, this parameter is required. |
cn-hangzhou |
| InstanceIds |
string |
No |
The IDs of the instances to be queried. Note
To specify multiple instance IDs, separate the IDs with commas (,). You can specify up to 30 instance IDs in a single request. |
r-bp1zxszhcgatnx**** |
| InstanceStatus |
string |
No |
The status of the instance. Valid values:
Note
For more information about instance statuses, see Instance statuses and impacts. |
Normal |
| ChargeType |
string |
No |
The billing method. Valid values:
|
PostPaid |
| NetworkType |
string |
No |
The network type. Valid values:
|
CLASSIC |
| EngineVersion |
string |
No |
The Redis-compatible engine version of the instance. Valid values: 2.8, 4.0, 5.0, 6.0, and 7.0. |
4.0 |
| InstanceClass |
string |
No |
The instance specifications. For more information, see Instance specifications. |
redis.master.small.default |
| VpcId |
string |
No |
The VPC ID. |
vpc-bp1nme44gek34slfc**** |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp1e7clcw529l773d**** |
| PageNumber |
integer |
No |
The page number of the instance list. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 50. Default value: 30. |
30 |
| InstanceType |
string |
No |
The instance type. Valid values:
|
Redis |
| SearchKey |
string |
No |
The search keyword. Fuzzy match is supported for instance names and instance IDs. |
apitest |
| ArchitectureType |
string |
No |
The architecture type. Valid values:
|
standard |
| Expired |
string |
No |
The expiration status of the instance. Valid values:
|
false |
| ZoneId |
string |
No |
The zone ID. |
cn-hongkong-b |
| ResourceGroupId |
string |
No |
The resource group ID. Note
You can invoke the ListResourceGroups operation or use the console to obtain the list of resource group IDs. For related operations, see View the basic information of a resource group. |
rg-acfmyiu4ekp**** |
| GlobalInstance |
boolean |
No |
Specifies whether to filter child instances of distributed instances in the returned instance list. Valid values:
|
true |
| EditionType |
string |
No |
The edition type of the instance. Valid values:
|
Enterprise |
| PrivateIp |
string |
No |
The private IP address in the VPC. |
172.16.49.*** |
| Tag |
array<object> |
No |
The tag information of the instance. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The tag key. It forms a key-value pair with the tag value. Note
You can specify up to 5 tag key-value pairs in a single request. |
Storage type |
| Value |
string |
No |
The tag value. It forms a key-value pair with the tag key. |
Development |
| NodeType |
string |
No |
The node type. Valid values:
Note
For cloud-native instances, select MASTER_SLAVE or STAND_ALONE. For classic instances, select double or single. |
MASTER_SLAVE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The object. |
||
| Instances |
object |
||
| KVStoreInstance |
array<object> |
The collection of instances. |
|
|
array<object> |
The tag object. |
||
| ArchitectureType |
string |
The architecture type. Valid values:
|
cluster |
| Bandwidth |
integer |
The bandwidth of the instance. Unit: MB/s. |
96 |
| Capacity |
integer |
The capacity of the instance. Unit: MB. |
4096 |
| ChargeType |
string |
The billing method. Valid values:
|
PostPaid |
| CloudType |
string |
This parameter is returned only for CloudBox instances. |
cloudbox |
| ComputingType |
string |
The computing type of the instance. Valid values:
|
Ecs |
| Config |
string |
The parameter settings of the instance. For more information, see Parameter settings. |
{\"maxmemory-policy\":\"volatile-lfu\",\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"zset-max-ziplist-entries\":128,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64,\"#no_loose_disabled-commands\":\"flushall,flushdb\",\"lazyfree-lazy-eviction\":\"yes\"} |
| ConnectionDomain |
string |
The internal endpoint of the instance. Important After you modify the instance or apply for a new endpoint, this field cannot provide the actual network status information of the instance. Use the DescribeDBInstanceNetInfo API operation to query the real-time external endpoint information of the instance. |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| ConnectionMode |
string |
The access mode of the instance. Valid values:
[Deprecated] Use the DescribeDBInstanceNetInfo API operation instead. |
Standard |
| Connections |
integer |
The maximum number of connections to the instance. |
20000 |
| CreateTime |
string |
The time when the instance was created. |
2018-11-07T08:49:00Z |
| DestroyTime |
string |
The time when the instance was destroyed. |
2019-04-28T10:03:01Z |
| EditionType |
string |
The edition of the instance. Valid values:
|
Enterprise |
| EndTime |
string |
The time when the subscription instance expires. |
2019-06-13T16:00:00Z |
| EngineVersion |
string |
The Redis-compatible engine version of the instance. |
4.0 |
| GlobalInstanceId |
string |
The distributed instance ID. Note
This parameter is returned only when the instance is a child instance of a distributed instance. |
gr-bp14rkqrhac**** |
| HasRenewChangeOrder |
boolean |
Indicates whether there is an inactive renewal and Upgrade/Downgrade order. Valid values:
|
false |
| InstanceClass |
string |
The instance type. |
redis.logic.sharding.2g.2db.0rodb.4proxy.default |
| InstanceId |
string |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| InstanceName |
string |
The name of the instance. |
apitest |
| InstanceStatus |
string |
The instance status. Valid values:
|
Normal |
| InstanceType |
string |
The engine type of the instance. Valid values:
|
Redis |
| IsRds |
boolean |
Indicates whether the instance is managed by ApsaraDB RDS. Valid values:
|
true |
| NetworkType |
string |
The network type. Valid values:
|
CLASSIC |
| NodeType |
string |
The node type. Valid values:
|
double |
| PackageType |
string |
The plan type. Valid values:
|
standard |
| Port |
integer |
The service port of the instance. Important After you modify the port of the network endpoint for the instance, this field cannot provide the actual network status information of the instance. Use the DescribeDBInstanceNetInfo API operation to query the real-time external endpoint information of the instance. |
6379 |
| PrivateIp |
string |
The private IP address. Note
This parameter is not returned when the network type of the instance is classic network. |
172.16.49.*** |
| QPS |
integer |
The queries per second (QPS). |
100000 |
| QuotaCount |
integer |
||
| ReadOnlyCount |
string |
The number of read-only nodes in the primary zone. Note
The ReadOnlyCount and SlaveReadOnlyCount parameters apply only to cloud-native instances and instances with read/write splitting enabled. If the instance uses the cluster architecture, these parameters indicate the number of read-only nodes in the primary and secondary zones for a single shard. |
1 |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ReplacateId |
string |
The logical ID of the active geo-redundancy instance. |
grr-bp11381ebc16**** |
| ReplicaCount |
integer |
The number of secondary nodes in the primary zone. Note
The ReplicaCount and SlaveReplicaCount parameters apply only to cloud-native instances. If the instance uses the cluster architecture, these parameters indicate the number of secondary nodes in the primary and secondary zones for a single shard. |
1 |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfmyiu4ekp**** |
| SecondaryZoneId |
string |
The secondary zone ID. Note
If the ZoneId parameter already returns multiple zones, such as "cn-hangzhou-MAZ10(h,i)", this parameter is not returned. |
cn-hangzhou-h |
| ShardClass |
string |
The specifications of the data shard node. For more information, see Specification query navigation. Note
The overall performance of a cluster architecture instance is calculated as follows: shard node specifications (ShardClass) × number of shards (ShardCount). |
redis.shard.small.ce |
| ShardCount |
integer |
The number of data nodes in the cluster. Note
This parameter is returned only for cloud-native cluster instances or read/write splitting instances. |
3 |
| SlaveReadOnlyCount |
integer |
The number of read-only nodes in the secondary zone. |
1 |
| SlaveReplicaCount |
integer |
The number of secondary nodes in the secondary zone. |
1 |
| Tags |
object |
||
| Tag |
array<object> |
The tag information. |
|
|
object |
The tag object. |
||
| Key |
string |
The tag key. |
key1 |
| Value |
string |
The tag value. |
value1 |
| UsedCount |
integer |
||
| UserName |
string |
The username used for connection. By default, a username named after the instance ID is included. |
r-bp1zxszhcgatnx**** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1e7clcw529l773d**** |
| VpcId |
string |
The virtual private cloud (VPC) ID. |
vpc-bp1nme44gek34slfc**** |
| WorkspaceId |
string |
||
| ZoneId |
string |
The zone ID. |
cn-hangzhou-b |
| PageNumber |
integer |
The page number of the instance list. |
1 |
| PageSize |
integer |
The number of entries per page. |
30 |
| RequestId |
string |
The request ID. |
1E83311F-0EE4-4922-A3BF-730B312B**** |
| TotalCount |
integer |
The total number of instances. |
1 |
Examples
Success response
JSON format
{
"Instances": {
"KVStoreInstance": [
{
"ArchitectureType": "cluster",
"Bandwidth": 96,
"Capacity": 4096,
"ChargeType": "PostPaid",
"CloudType": "cloudbox",
"ComputingType": "Ecs",
"Config": "{\\\"maxmemory-policy\\\":\\\"volatile-lfu\\\",\\\"EvictionPolicy\\\":\\\"volatile-lru\\\",\\\"hash-max-ziplist-entries\\\":512,\\\"zset-max-ziplist-entries\\\":128,\\\"zset-max-ziplist-value\\\":64,\\\"set-max-intset-entries\\\":512,\\\"hash-max-ziplist-value\\\":64,\\\"#no_loose_disabled-commands\\\":\\\"flushall,flushdb\\\",\\\"lazyfree-lazy-eviction\\\":\\\"yes\\\"}",
"ConnectionDomain": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"ConnectionMode": "Standard",
"Connections": 20000,
"CreateTime": "2018-11-07T08:49:00Z",
"DestroyTime": "2019-04-28T10:03:01Z",
"EditionType": "Enterprise",
"EndTime": "2019-06-13T16:00:00Z",
"EngineVersion": "4.0",
"GlobalInstanceId": "gr-bp14rkqrhac****",
"HasRenewChangeOrder": false,
"InstanceClass": "redis.logic.sharding.2g.2db.0rodb.4proxy.default",
"InstanceId": "r-bp1zxszhcgatnx****",
"InstanceName": "apitest",
"InstanceStatus": "Normal",
"InstanceType": "Redis",
"IsRds": true,
"NetworkType": "CLASSIC",
"NodeType": "double",
"PackageType": "standard",
"Port": 6379,
"PrivateIp": "172.16.49.***",
"QPS": 100000,
"QuotaCount": 0,
"ReadOnlyCount": "1",
"RegionId": "cn-hangzhou",
"ReplacateId": "grr-bp11381ebc16****",
"ReplicaCount": 1,
"ResourceGroupId": "rg-acfmyiu4ekp****",
"SecondaryZoneId": "cn-hangzhou-h",
"ShardClass": "redis.shard.small.ce",
"ShardCount": 3,
"SlaveReadOnlyCount": 1,
"SlaveReplicaCount": 1,
"Tags": {
"Tag": [
{
"Key": "key1",
"Value": "value1"
}
]
},
"UsedCount": 0,
"UserName": "r-bp1zxszhcgatnx****",
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"VpcId": "vpc-bp1nme44gek34slfc****",
"WorkspaceId": "",
"ZoneId": "cn-hangzhou-b"
}
]
},
"PageNumber": 1,
"PageSize": 30,
"RequestId": "1E83311F-0EE4-4922-A3BF-730B312B****",
"TotalCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceIds.Malformed | The Specified parameter InstanceIds is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.