tencent cloud

腾讯云分布式缓存数据库(兼容 Redis)

动态与公告
产品动态
公告
新手指引
产品简介
产品概述
产品优势
应用场景
存储引擎
产品系列
产品版本
规格与性能
读写分离
多可用区部署
地域和可用区
名词解释
购买指南
计费概述
定价中心
购买实例
续费说明(包年包月)
退费说明(包年包月)
欠费说明
按量转包年包月
快速入门
快速创建实例
连接实例(Redis/Valkey 版)
操作指南
操作总览
连接数据库实例
管理实例
升级实例
管理节点(Redis/ValKey 版)
管理多可用区
备份与恢复
账号管理
参数配置
慢查询
访问管理
网络与安全
监控与告警
事件管理(Redis/ValKey 版)
数据迁移
Redis 版全球复制
数据库审计
诊断优化
Sentinel 模式
开发准则
命名规则
基本使用准则
Key 与 Value 设计原则
命令使用准则
客户端程序设计准则
连接池配置
命令参考
命令参考概览
Redis 版与 Valkey 版命令兼容性
大版本命令使用差异
Proxy 架构与直连模式的使用差异
命令更多操作(Redis/Valkey 版)
Memcached 版命令兼容性
实践教程
基于 Spring Boot 搭建 Redis 客户端监控
Redis 客户端连接配置策略与实践
集群架构全局 SCAN 使用指南
实例安全下线
热 Key 与 大 key
可用区迁移方案
故障处理
连接异常
Redisson 客户端超时重连异常分析及解决方案
性能排查与调优
API 文档
History
Introduction
API Category
Making API Requests
Instance APIs
Parameter Management APIs
Other APIs
Backup and Restoration APIs
Region APIs
Monitoring and Management APIs
Log APIs
Data Types
Error Codes
常见问题
使用常见问题
连接登录问题
购买相关问题
相关协议
服务等级协议
Terms of Service
词汇表
联系我们

DescribeInstances

PDF
聚焦模式
字号
最后更新时间: 2025-10-28 22:22:02

1. API Description

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

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

A maximum of 35 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.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeInstances.
Version Yes String Common Params. The value used for this API: 2018-04-12.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
Limit No Integer Number of instances returned per page. Default value: 20. Maximum value: 1000.
Offset No Integer Pagination offset, which is an integral multiple of Limit. Calculation formula: offset = limit * (page number - 1).
InstanceId No String ID of a specified instance, such as "crs-xjhsdj****" Log in to the Redis console and copy the instance ID in the instance list.

OrderBy No String The instance list is sorted according to the following enumeration valid values:
- projectId: By project ID.- createtime: By the creation time of instances.- instancename: By the name of instances.- type: By the type of instances.- curDeadline: By the expiration time of instances.
OrderType No Integer For instance sorting order, the default is descending order.
- 1: Descending order.
- 0: Ascending order.
VpcIds.N No Array of String Array of VPC IDs such as 47525. If this parameter is not passed in or the array is empty, the classic network will be selected by default. This parameter is retained and can be ignored. It is set based on UniqVpcIds parameter format.
SubnetIds.N No Array of String Array of VPC subnet IDs such as 56854. This parameter is retained and can be ignored. It is set based on UniqSubnetIds parameter format.
SearchKey No String Setting keywords field for fuzzy query, only instance names support fuzzy query.
ProjectIds.N No Array of Integer Array of project IDs
InstanceName No String Instance name
UniqVpcIds.N No Array of String Array of VPC IDs such as vpc-sad23jfdfk. If this parameter is not passed in or or the array is empty, the classic network will be selected by default.
UniqSubnetIds.N No Array of String Array of VPC subnet IDs such as subnet-fdj24n34j2
RegionIds.N No Array of Integer Array of region IDs (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: Pending Delete.
TypeVersion No Integer Instance architecture version.
- 1: Single-node edition.
- 2: Master-replica edition.- 3: Cluster edition.
EngineName No String Storage engine information. Valid values: Redis-2.8, Redis-4.0, Redis-5.0, Redis-6.0 or CKV.
AutoRenew.N No Array of Integer Renewal pattern.
- 0: Manual renewal.
- 1: Automatic renewal.
- 2: No renewal after expiry.
BillingMode No String Billing mode. Only pay-as-you-go billing is supported.
Type No Integer Instance type.

- 2: Redis 2.8 memory edition (standard architecture).
- 3: CKV 3.2 memory edition (standard architecture).
- 4: CKV 3.2 memory edition (cluster architecture).
- 5: Redis 2.8 memory edition (standalone).
- 6: Redis 4.0 memory edition (standard architecture).
- 7: Redis 4.0 memory edition (cluster architecture).
- 8: Redis 5.0 memory edition (standard architecture).
- 9: Redis 5.0 memory edition (cluster architecture).
- 15: Redis 6.2 memory edition (standard architecture).
- 16: Redis 6.2 memory edition (cluster architecture).
- 17: Redis 7.0 memory edition (standard architecture).
- 18: Redis 7.0 memory edition (cluster architecture).
- 200: Memcached 1.6 memory edition (cluster architecture).
SearchKeys.N No Array of String This parameter is of array type and supports the configuration of instance names, instance IDs, and IP addresses. Among these, the instance name is fuzzy matching while the instance ID and IP address are precise matching.
- Each element in the array is used for a union-based matching query.- When both InstanceId and SearchKeys are configured simultaneously, their intersection will be used for the matching query.
TypeList.N No Array of Integer Internal parameter, which can be ignored.
MonitorVersion No String Internal parameter, which can be ignored.
InstanceTags.N No Array of InstanceTagInfo Resources filter by tag key and value. If this parameter is not specified or is an empty array, resources will not be filtered.
TagKeys.N No Array of String Resources filter by tag key. If this parameter is not specified or is an empty array, resources will not be filtered.
ProductVersions.N No Array of String The product version of the instance. If this parameter is not configured or the array is set to empty, instances will not be filtered based on this parameter by default.
- local: local Disk Edition.- cdc: Cluster dedicated edition.
InstanceIds.N No Array of String Batch query of the specified instances ID. The number of results returned is based on Limit.
AzMode No String Availability zone mode.
- singleaz: Single availability zone.- multiaz: Multiple availability zones.

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Total number of instances
InstanceSet Array of InstanceSet List of instance details
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Request Example

This example shows you how to query the list of Redis instances.

Input Example

POST / HTTP/1.1
Host: redis.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeInstances
<Common request parameters>

{
    "Limit": 2,
    "Offset": 0,
    "OrderBy": "createtime "
}

Output Example

{
    "Response": {
        "InstanceSet": [
            {
                "Appid": 251223628,
                "AutoRenewFlag": 0,
                "BillingMode": 1,
                "ClientLimit": 10000,
                "ClientLimitMax": 40000,
                "ClientLimitMin": 10000,
                "CloseTime": "0000-00-00 00:00:00",
                "Createtime": "2023-04-17 11:32:18",
                "CurrentProxyVersion": "5.8.0",
                "CurrentRedisVersion": "6.0.0",
                "DeadlineTime": "2023-05-17 11:32:18",
                "DedicatedClusterId": "",
                "DiskSize": 0,
                "DtsStatus": 0,
                "Engine": "Redis",
                "InstanceId": "crs-4nmzc0ul",
                "InstanceName": "Redis_automation_is_awesome",
                "InstanceNode": [],
                "InstanceTags": [],
                "InstanceTitle": "Adding an instance",
                "MonitorVersion": "5s",
                "NetLimit": 24,
                "NoAuth": false,
                "NodeSet": [
                    {
                        "NodeId": 336948,
                        "NodeType": 0,
                        "ZoneId": 100002,
                        "ZoneName": ""
                    },
                    {
                        "NodeId": 336946,
                        "NodeType": 1,
                        "ZoneId": 100003,
                        "ZoneName": ""
                    },
                    {
                        "NodeId": 336947,
                        "NodeType": 1,
                        "ZoneId": 100004,
                        "ZoneName": ""
                    }
                ],
                "OfflineTime": "",
                "PasswordFree": 0,
                "PolarisServer": "",
                "Port": 6379,
                "PriceId": 1000848,
                "ProductType": "standalone",
                "ProductVersion": "local",
                "ProjectId": 0,
                "ProjectName": "Default project",
                "ReadOnly": 0,
                "RedisClusterId": "",
                "RedisReplicasNum": 2,
                "RedisShardNum": 1,
                "RedisShardSize": 4096,
                "Region": "ap-guangzhou",
                "RegionId": 1,
                "RemainBandwidthDuration": "",
                "Size": 4096,
                "SlaveReadWeight": 0,
                "Status": 1,
                "SubStatus": 37,
                "SubnetId": 2282634,
                "Tags": [],
                "Type": 15,
                "UniqSubnetId": "subnet-1ed4w7to",
                "UniqVpcId": "vpc-mjwornzj",
                "UpgradeProxyVersion": "",
                "UpgradeRedisVersion": "",
                "Vip6": "",
                "VpcId": 11133673,
                "WanAddress": "",
                "WanIp": "10.0.1.61",
                "ZoneId": 100002
            },
            {
                "Appid": 251223628,
                "AutoRenewFlag": 0,
                "BillingMode": 1,
                "ClientLimit": 10000,
                "ClientLimitMax": 40000,
                "ClientLimitMin": 10000,
                "CloseTime": "0000-00-00 00:00:00",
                "Createtime": "2023-04-17 11:47:02",
                "CurrentProxyVersion": "5.5.0",
                "CurrentRedisVersion": "92.0.0",
                "DeadlineTime": "2023-05-17 11:47:01",
                "DedicatedClusterId": "",
                "DiskSize": 0,
                "DtsStatus": 0,
                "Engine": "Redis",
                "InstanceId": "crs-46njvft9",
                "InstanceName": "Redis_automation_is_awesome",
                "InstanceNode": [],
                "InstanceTags": [],
                "InstanceTitle": "Running",
                "MonitorVersion": "5s",
                "NetLimit": 24,
                "NoAuth": false,
                "NodeSet": [
                    {
                        "NodeId": 336951,
                        "NodeType": 0,
                        "ZoneId": 100002,
                        "ZoneName": ""
                    },
                    {
                        "NodeId": 336949,
                        "NodeType": 1,
                        "ZoneId": 100003,
                        "ZoneName": ""
                    },
                    {
                        "NodeId": 336950,
                        "NodeType": 1,
                        "ZoneId": 100004,
                        "ZoneName": ""
                    }
                ],
                "OfflineTime": "",
                "PasswordFree": 0,
                "PolarisServer": "",
                "Port": 6379,
                "PriceId": 1000848,
                "ProductType": "standalone",
                "ProductVersion": "local",
                "ProjectId": 0,
                "ProjectName": "Default project",
                "ReadOnly": 0,
                "RedisClusterId": "",
                "RedisReplicasNum": 2,
                "RedisShardNum": 1,
                "RedisShardSize": 4096,
                "Region": "ap-guangzhou",
                "RegionId": 1,
                "RemainBandwidthDuration": "",
                "Size": 4096,
                "SizeUsed": 0,
                "SlaveReadWeight": 0,
                "Status": 2,
                "SubStatus": 19,
                "SubnetId": 2282634,
                "Tags": [],
                "Type": 6,
                "UniqSubnetId": "subnet-1ed4w7to",
                "UniqVpcId": "vpc-mjwornzj",
                "UpgradeProxyVersion": "",
                "UpgradeRedisVersion": "",
                "Vip6": "",
                "VpcId": 11133673,
                "WanAddress": "",
                "WanIp": "10.0.1.71",
                "ZoneId": 100002
            }
        ],
        "RequestId": "3fb5a4d2-680c-45a2-aa88-0213b76d1489",
        "TotalCount": 8
    }
}

5. Developer Resources

SDK

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.
UnsupportedOperation The operation is not supported.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈