Last updated: 2019-09-09 12:20:55

1. API Description

API domain name:

This API queries the list of Redis instances.

Default API request rate limit: 20 requests/sec.

Note: This API supports financial availability zones. Because financial availability zones and non-financial availability zones are isolated, if the common parameter Region specifies a financial availability zone (e.g., ap-shanghai-fsi), you need to specify a domain name with the financial availability zone as well, which preferably in the same region as the specified Region, for example:

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: DescribeInstances
Version Yes String Common parameter; the version of this API: 2018-04-12
Region Yes String Common parameters; for details, see the List of Regions supported by the product.
Limit No Integer Instance list size; 20 by default
Offset No Integer Offset, which is an integral multiple of Limit
InstanceId No String Instance ID, such as crs-6ubhgouj
OrderBy No String Enumeration range: projectId,createtime,instancename,type,curDeadline
OrderType No Integer 1: reverse; 0: sequential; reverse by default
VpcIds.N No Array of String Array of VPC IDs such as 47525. The array subscript starts from 0. If this parameter is left blank, the basic network is selected by default
SubnetIds.N No Array of String Array of subnet IDs such as 56854. The array subscript starts from 0
ProjectIds.N No Array of Integer Array of project IDs. The array subscript starts from 0
SearchKey No String ID of the instance to be searched for.
InstanceName No String Instance name
UniqVpcIds.N No Array of String Array of VPC IDs such as vpc-sad23jfdfk. The array subscript starts from 0. If this parameter is not passed in, the basic network is selected by default
UniqSubnetIds.N No Array of String Array of subnet IDs such as subnet-fdj24n34j2. The array subscript starts from 0
RegionIds.N No Array of Integer Region ID, which has already been obsoleted. The corresponding region can be queried through the common parameter Region
Status.N No Array of Integer Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted
TypeVersion No Integer Type edition. 1: standalone edition; 2: master-slave edition; 3: cluster edition
EngineName No String Engine information: Redis-2.8, Redis-4.0, CKV
AutoRenew.N No Array of Integer Renewal mode. 0: default status (manual renewal); 1: auto-renewal; 2: auto-renewal clearly banned
BillingMode No String Billing method: pay-as-you-go and prepaid
Type No Integer Instance type. 1: legacy Redis cluster edition; 2: Redis 2.8 master-slave edition; 3: CKV master-slave edition; 4: CKV cluster edition; 5: Redis 2.8 standalone edition; 7: Redis 4.0 cluster edition
SearchKeys.N No Array of String Search keyword, which can be instance ID, instance name, or complete IP

3. Output Parameters

Parameter name Type Description
TotalCount Integer Number of instances
InstanceSet Array of InstanceSet List of instance details
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Sample 1. Request Example

Input Sample Code
&<Common request parameter>

Output Sample Code

  "Response": {
    "InstanceSet": [
        "Appid": 1251006373,
        "AutoRenewFlag": 0,
        "BillingMode": 0,
        "CloseTime": "0000-00-00 00:00:00",
        "Createtime": "0000-00-00 00:00:00",
        "DeadlineTime": "0000-00-00 00:00:00",
        "Engine": "Redis community edition",
        "InstanceId": "crs-7ponppu3",
        "InstanceName": "crs-7ponppu3",
        "InstanceNode": [],
        "InstanceTags": [
            "TagKey": "aaa",
            "TagValue": "111"
        "InstanceTitle": "Instance running",
        "OfflineTime": "",
        "Port": 6379,
        "PriceId": 13380,
        "ProductType": "Redis4.0 cluster edition",
        "ProjectId": 0,
        "RedisReplicasNum": 1,
        "RedisShardNum": 3,
        "RedisShardSize": 1024,
        "RegionId": 1,
        "Size": 3072,
        "SizeUsed": 0,
        "SlaveReadWeight": 0,
        "Status": 2,
        "SubStatus": 19,
        "SubnetId": 0,
        "Tags": [],
        "Type": 7,
        "UniqSubnetId": "",
        "UniqVpcId": "",
        "VpcId": 0,
        "WanIp": "",
        "ZoneId": 100002
    "RequestId": "e3d683fc-f2ff-43c9-980d-fae7a1166abc",
    "TotalCount": 1

5. Developer Resources

API Explorer

API Explorer is a tool that provides ease of use in requesting APIs, authenticating identities, generating SDK and exploring APIs in Tencent Cloud environment.


TencentCloud API 3.0 integrates software development toolkits (SDKs) that support various programming languages to make it easier for you to call the APIs.


6. Error Codes

The following error codes are API business logic-related. For other error codes, see Common Error Codes.

Error Code Description
InternalError.DbOperationFailed Internal database operation (e.g., update, insert, or select) errors.
InvalidParameter Parameter error
InvalidParameter.EmptyParam The specified parameter is not allowed to have an empty value.
InvalidParameter.InvalidParameter Application parameter error.
InvalidParameter.PermissionDenied The API has no CAM permissions.
UnauthorizedOperation.NoCAMAuthed The operation performed is not authorized by CAM.