Queries the overview information of one or more ApsaraDB for Redis instances.
Operation description
If you do not specify the InstanceIds parameter when you call this operation, the overview information of all instances is returned.
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:DescribeInstancesOverview | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which the instances you want to query reside. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
InstanceIds | string | No | The IDs of instances. Note
By default, all instances that belong to this account are queried. If you specify multiple instance IDs, separate the instance IDs with commas (,).
| r-bp1zxszhcgatnx**** |
InstanceStatus | string | No | The state of the instance. Valid values:
Note
For more information about instance states, see Instance states and impacts.
| Normal |
ChargeType | string | No | The billing method of the instance. Valid values:
| PostPaid |
NetworkType | string | No | The network type of the instance. Valid values:
| CLASSIC |
EngineVersion | string | No | The database engine version of the instance. Enumeration Value:
| 4.0 |
InstanceClass | string | No | The instance type of the instance. For more information, see Instance types. | redis.master.small.default |
VpcId | string | No | The ID of the VPC. | vpc-bp1nme44gek34slfc**** |
VSwitchId | string | No | The ID of the vSwitch. | vsw-bp1e7clcw529l773d**** |
InstanceType | string | No | The category of the instance. Valid values:
| Redis |
SearchKey | string | No | The keyword used for fuzzy search. The keyword can be based on an instance ID or an instance description. | apitest |
ArchitectureType | string | No | The architecture of the instance. Valid values:
| standard |
ZoneId | string | No | The zone ID of the instance. | cn-hangzhou-b |
ResourceGroupId | string | No | The ID of the resource group to which the instances you want to query belong. Note
You can query resource group IDs by using the ApsaraDB for Redis console or by calling the ListResourceGroups operation. For more information, see View basic information of a resource group.
| rg-acfmyiu4ekp**** |
EditionType | string | No | The edition of the instance. Valid values:
| Enterprise |
PrivateIp | string | No | The private IP address of the instance. | 172.16.49.*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1E83311F-0EE4-4922-A3BF-730B312B****",
"TotalCount": 1,
"Instances": [
{
"VpcId": "vpc-bp1nme44gek34slfc****",
"PrivateIp": "172.16.49.***",
"Capacity": 4096,
"CreateTime": "2018-11-07T08:49:00Z",
"ConnectionDomain": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"ChargeType": "PostPaid",
"ArchitectureType": "cluster",
"NetworkType": "CLASSIC",
"EngineVersion": "4.0",
"InstanceName": "apitest",
"GlobalInstanceId": "gr-bp14rkqrhac****",
"InstanceClass": "redis.logic.sharding.2g.2db.0rodb.4proxy.default",
"InstanceId": "r-bp1zxszhcgatnx****",
"InstanceType": "Redis",
"RegionId": "cn-hangzhou",
"EndTime": "2022-06-13T16:00:00Z",
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"ResourceGroupId": "rg-acfmyiu4ekp****",
"ZoneId": "cn-hangzhou-b",
"InstanceStatus": "Normal",
"SecondaryZoneId": "cn-hangzhou-g"
}
]
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidInstanceIds.Malformed | The Specified parameter InstanceIds is not valid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-06-12 | The Error code has changed | View Change Details |
2023-03-06 | The Error code has changed. The response structure of the API has changed | View Change Details |
2021-11-23 | Add Operation | View Change Details |