tencent cloud

All product documents
TDSQL-C for MySQL
DescribeClusterDetail
Last updated: 2025-03-11 22:20:25
DescribeClusterDetail
Last updated: 2025-03-11 22:20:25

1. API Description

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

This API is used to show the details of an instance.

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.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeClusterDetail.
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-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley.
ClusterId Yes String Cluster ID

3. Output Parameters

Parameter Name Type Description
Detail CynosdbClusterDetail Cluster 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 Cluster Information Description

This example shows you how to obtain the cluster information description.

Input Example

POST / HTTP/1.1
Host: cynosdb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeClusterDetail
<common request parameters>

{
    "ClusterId": "cynosdbpg-5804k48e"
}

Output Example

{
    "Response": {
        "Detail": {
            "Ability": {
                "IsSupportRo": "yes",
                "IsSupportSlaveZone": "yes",
                "NonsupportRoReason": "aaabbbccc",
                "NonsupportSlaveZoneReason": "aaabbbccc"
            },
            "BusinessType": "",
            "Charset": "utf8mb4",
            "ClusterId": "cynosdbmysql-sgvwu2is",
            "ClusterName": "cynodbmysql-custom username",
            "CreateTime": "2020-02-20 20:20:20",
            "CynosVersion": "3.1.10",
            "DbMode": "normal",
            "DbType": "MYSQL",
            "DbVersion": "5.7",
            "HasSlaveZone": "",
            "InstanceSet": [
                {
                    "InstanceCpu": 1,
                    "InstanceId": "cynosdbmysql-ins-xvs9osn2",
                    "InstanceMemory": 2,
                    "InstanceName": "cynosdbmysql-custom username",
                    "InstanceRole": "master",
                    "InstanceStatus": "running",
                    "InstanceStatusDesc": "Running",
                    "InstanceStorage": 0,
                    "InstanceType": "rw",
                    "MaintainDuration": 0,
                    "MaintainStartTime": 0,
                    "MaintainWeekDays": [
                        "Mon"
                    ],
                    "ServerlessStatus": "pause"
                }
            ],
            "IsFreeze": "no",
            "IsOpenPasswordComplexity": "yes",
            "IsSkipTrade": "no",
            "LogBin": "ON",
            "MasterZone": "ap-guangzhou-5",
            "MaxStorageSize": 1000,
            "MinStorageSize": 10,
            "NetworkStatus": "whole_rdma",
            "NetworkType": "whole_rdma",
            "PayMode": 0,
            "PeriodEndTime": "2030-01-01 10:01:01",
            "PhysicalZone": "ap-guangzhou-1",
            "PitrType": "redo_pitr",
            "ProjectID": 0,
            "ProxyStatus": "running",
            "Region": "ap-guangzhou",
            "RenewFlag": 0,
            "ResourcePackages": [
                {
                    "PackageId": "package-xbhsw7wk",
                    "PackageType": "CCU"
                }
            ],
            "ResourceTags": [
                {
                    "TagKey": "tagKey-1",
                    "TagValue": "tagValue-1"
                }
            ],
            "RoAddr": [
                {
                    "IP": "1.2.3.5",
                    "Port": 3306
                }
            ],
            "ServerlessStatus": "Running",
            "SlaveZoneAttr": [
                {
                    "BinlogSyncWay": "async",
                    "Zone": "ap-guangzhou-3"
                }
            ],
            "SlaveZones": [
                "ap-guangzhou-3"
            ],
            "Status": "running",
            "StatusDesc": "Running",
            "Storage": 20,
            "StorageId": "cynosdbmysql-sgvwu2is",
            "StorageLimit": 20,
            "StoragePayMode": 0,
            "SubnetId": "subnet-stbcji8s",
            "SubnetName": "subnet-stbcji8s",
            "Tasks": [
                {
                    "ObjectId": "cynosdbmysql-sgvwu2is",
                    "ObjectType": "taskObjTypeCluster",
                    "TaskId": 10,
                    "TaskStatus": "processing",
                    "TaskType": "taskAutoBackup"
                }
            ],
            "UsedStorage": 14,
            "Vip": "1.2.3.4",
            "VpcId": "vpc-osjw7wbx",
            "VpcName": "vpc-osjw7wbx",
            "Vport": 3306,
            "Zone": "ap-guangzhou-1"
        },
        "RequestId": "6febb6f0-b0fc-11ee-93cb-73a07daf38c5"
    }
}

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.CamSigAndAuthError Authentication failed. Please try again later. If the problem persists, please contact customer service.
FailedOperation.DatabaseAccessError Failed to access the database. Please try again later. If the problem persists, please contact customer service.
FailedOperation.OperationFailedError Operation failed. Try again later. If the problem persists, contact customer service.
InternalError.DbOperationFailed Failed to query the database.
InternalError.GetVpcFailed Failed to get the VPC.
InternalError.InternalHttpServerError An exception occurred while executing the HTTP request.
InternalError.SystemError Internal system error.
InternalError.UnknownError Unknown internal error.
InvalidParameterValue.ClusterNotFound No cluster found.
InvalidParameterValue.InstanceNotFound The instance does not exist.
InvalidParameterValue.InvalidParameterValueError Invalid parameter value.
InvalidParameterValue.SubnetNotFound The selected subnet could not be found.
OperationDenied.VersionNotSupportError Serverless is not supported on this version.
ResourceNotFound.ClusterNotFoundError The cluster does not exist.
UnauthorizedOperation.PermissionDenied CAM authentication failed.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon