tencent cloud



Last updated: 2022-01-23 11:20:15

1. API Description

Domain name for API request: redis.tencentcloudapi.com.

This API is used to query the list of Redis instances.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeInstances.
Version Yes String Common parameter. The value used for this API: 2018-04-12.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
Limit No Integer Instance list size. Default value: 20
Offset No Integer Offset, which is an integral multiple of Limit
InstanceId No String Instance ID, such as crs-6ubhgouj
OrderBy No String Enumerated values: 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 not passed in, the basic network will be 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 will be 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 disused. 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: primary-secondary 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 enabled; 2: auto-renewal disabled
BillingMode No String Billing method. postpaid: pay-as-you-go; prepaid: monthly subscription
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, 6: Redis 4.0 Master-Slave Edition, 7: Redis 4.0 Cluster Edition, 8: Redis 5.0 Master-Slave Edition, 9: Redis 5.0 Cluster Edition,
SearchKeys.N No Array of String Search keywords, which can be instance ID, instance name, or complete IP
TypeList.N No Array of Integer Internal parameter, which can be ignored
MonitorVersion No String Internal parameter, which can be ignored

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Number of instances
InstanceSet Array of InstanceSet List of instance details
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Sample request

Input Example

&<Common request parameters>

Output Example

  "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": "Redis 4.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


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.SystemError Internal system error, which is irrelevant to the business.
FailedOperation.Unknown Invalid data is entered for weekday.
InternalError.DbOperationFailed Internal system error with the database operation, which may be update, insert, select, etc.
InvalidParameter Incorrect parameter.
InvalidParameter.EmptyParam The parameter is empty.
InvalidParameter.InvalidParameter Invalid service parameter.
InvalidParameter.PermissionDenied The API has no CAM permissions.
UnauthorizedOperation.NoCAMAuthed No CAM permissions.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support