tencent cloud

TDSQL-C MySQL 版

DescribeClusters

下载
聚焦模式
字号
最后更新时间: 2026-10-28 10:18:30

1. API Description

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

This API is used to describe clusters.

A maximum of 1000 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: DescribeClusters.
Version Yes String Common Params. The value used for this API: 2019-01-07.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
DbType No String Engine type: Currently supports "MYSQL", "POSTGRESQL".
Limit No Integer Returned quantity. Default value: 20. Maximum value: 100.
Offset No Integer Record offset. Default value: 0.
OrderBy No String Sorting field. Valid values:
  • CREATETIME: creation time
  • PERIODENDTIME: Expiration time
  • OrderByType No String Sorting type. Valid values:
  • ASC: ascending order
  • DESC: sort in descending order
  • Filters.N No Array of QueryFilter Search criteria. When multiple filters exist, the relationship between filters is logical AND.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Number of clusters
    ClusterSet Array of CynosdbCluster This example shows you how to obtain the cluster list.
    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 Querying a Cluster List

    Querying a Cluster List

    Input Example

    POST / HTTP/1.1
    Host: cynosdb.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeClusters
    <Common request parameters>
    
    {
        "DbType": "MYSQL",
        "Limit": 20,
        "Filters": [
            {
                "Values": [
                    "cynosdbpg-ins-bzkxxrmt"
                ],
                "Names": [
                    "InstanceId"
                ],
                "ExactMatch": "true"
            }
        ],
        "Offset": 0
    }

    Output Example

    {
        "Response": {
            "ClusterSet": [
                {
                    "Ability": {
                        "IsSupportManualSnapshot": "no",
                        "IsSupportRo": "yes",
                        "IsSupportSlaveZone": "yes",
                        "IsSupportTransparentDataEncryption": "no",
                        "NoSupportTransparentDataEncryptionReason": "current cluster not support transparent data encryption",
                        "NonsupportRoReason": "yes",
                        "NonsupportSlaveZoneReason": "current cluster not support ro"
                    },
                    "AppId": 2372636427,
                    "BusinessType": "bus_a",
                    "ClusterId": "cynosdbmysql-cbsg6tsg",
                    "ClusterName": "MyClusterName",
                    "CreateTime": "2024-05-30 19:26:42",
                    "CynosVersion": "2.1.12",
                    "DbMode": "NORMAL",
                    "DbType": "MYSQL",
                    "DbVersion": "5.7",
                    "HasSlaveZone": "yes",
                    "InstanceNum": 2,
                    "IsFreeze": "no",
                    "MasterZone": "ap-singapore-3",
                    "MaxStorageSize": 30000,
                    "MinStorageSize": 10,
                    "NetAddrs": [
                        {
                            "Description": "descirption",
                            "InstanceGroupId": "cynosdbpg-grp-sbh6ywhs",
                            "NetType": "singleRo",
                            "UniqSubnetId": "subnet-cnhsb8iu",
                            "UniqVpcId": "vpc-iskx6ygc",
                            "Vip": "1.1.1.1",
                            "Vport": 3306,
                            "WanDomain": "cynosdbpg-bzbsxrmt.wan.domain.com",
                            "WanIP": "3.45.1.9",
                            "WanPort": 3306,
                            "WanStatus": "init"
                        },
                        {
                            "Description": "descirption",
                            "InstanceGroupId": "cynosdbpg-grp-bc2b3us4",
                            "NetType": "ha",
                            "UniqSubnetId": "subnet-7shw8ijc",
                            "UniqVpcId": "vpc-y7us28sn",
                            "Vip": "1.1.1.1",
                            "Vport": 3306,
                            "WanDomain": "cynosdbpg-bzkxxrmt.wan.domain.com",
                            "WanIP": "3.23.1.5",
                            "WanPort": 3306,
                            "WanStatus": "init"
                        }
                    ],
                    "OrderSource": "lhdb",
                    "PayMode": 1,
                    "PeriodEndTime": "2024-06-30 19:32:51",
                    "PhysicalZone": "ap-singapore-3",
                    "ProcessingTask": "taskUpgradeStorage",
                    "ProjectID": 23,
                    "Region": "ap-singapore",
                    "RenewFlag": 1,
                    "ResourcePackages": [
                        {
                            "DeductionPriority": 0,
                            "PackageId": "package-nxuyx1op",
                            "PackageType": "CCU"
                        }
                    ],
                    "ResourceTags": [
                        {
    "TagKey": "Operating product",
    "TagValue": "Other Tencent Cloud billing products_1649"
                        },
                        {
    "TagKey": "Operation Department",
    "TagValue": "Billing product center_1013"
                        },
                        {
    "TagKey": "Level-1 Business",
    "TagValue": "[N][Tencent Cloud billing product others]_979685"
                        },
                        {
    "TagKey": "level-2 business"
    "TagValue": "[license management][license data engine]123"
                        }
                    ],
                    "ServerlessStatus": "paused",
                    "SlaveZones": [
                        "ap-singapore-4"
                    ],
                    "Status": "running",
    "StatusDesc": "running",
                    "Storage": 0,
                    "StorageId": "cynosdbpg-bcsu6tsg",
                    "StorageLimit": 30000,
                    "StoragePayMode": 0,
                    "SubnetId": "subnet-ybs8jcnw",
                    "Tasks": [
                        {
                            "ObjectId": "cynosdbmysql-k5sm8sh3",
                            "ObjectType": "taskObjTypeCluster",
                            "TaskId": 1207003,
                            "TaskStatus": "processing",
                            "TaskType": "taskDtsLockResource"
                        }
                    ],
                    "Uin": "237462834",
                    "UpdateTime": "2024-05-30 19:43:06",
                    "Vip": "1.1.1.1",
                    "VpcId": "vpc-ybs8ue2y",
                    "Vport": 3306,
                    "Zone": "ap-singapore-3"
                }
            ],
            "RequestId": "51169b54-61d4-4604-a07e-e519a5527923",
            "TotalCount": 31
        }
    }

    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.CamCheckResourceError Failed to obtain permissions. Try again later. If the issue persists, contact customer service.
    FailedOperation.DatabaseAccessError Database access failed. Try again later. If the issue persists, contact customer service.
    InternalError.DbOperationFailed Query database failed.
    InternalError.InternalHttpServerError http request execution error.
    InternalError.SystemError Internal system error.
    InternalError.UnknownError Unknown internal error.
    InvalidParameterValue.IllegalOrderBy Invalid sorting field.
    InvalidParameterValue.InvalidParameterValueError Parameter value is invalid.
    InvalidParameterValue.ParamBothSetError Both parameters cannot be set simultaneously.
    UnauthorizedOperation.PermissionDenied CAM authentication failed.

    帮助和支持

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

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

    文档反馈