tencent cloud

Feedback

DescribeCdbZoneConfig

Last updated: 2024-11-20 11:15:06

    1. API Description

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

    This API is used to query the purchasable specifications of TencentDB instances in a region.

    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: DescribeCdbZoneConfig.
    Version Yes String Common Params. The value used for this API: 2017-03-20.
    Region Yes String Common Params. For more information, please see the list of regions supported by the product.

    3. Output Parameters

    Parameter Name Type Description
    DataResult CdbZoneDataResult List of purchasable specification and region information
    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 the purchasable database specifications

    Input Example

    POST / HTTP/1.1
    Host: cdb.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCdbZoneConfig
    <Common request parameters>
    
    {}
    

    Output Example

    {
        "Response": {
            "DataResult": {
                "Configs": [
                    {
                        "Cpu": 1,
                        "DeviceType": "CUSTOM",
                        "EngineType": "InnoDB",
                        "Id": 11,
                        "Info": "Small-scale game apps with tens of thousands of DAUs or widget apps with millions of DAUs"
                        "Iops": 1200,
                        "Memory": 1000,
                        "Status": 0,
                        "VolumeMax": 3000,
                        "VolumeMin": 25,
                        "VolumeStep": 5
                    },
                    {
                        "Cpu": 1,
                        "DeviceType": "CUSTOM",
                        "EngineType": "InnoDB",
                        "Id": 12,
                        "Info": "Small-scale game apps with tens of thousands of DAUs or widget apps with millions of DAUs"
                        "Iops": 2000,
                        "Memory": 2000,
                        "Status": 0,
                        "VolumeMax": 3000,
                        "VolumeMin": 25,
                        "VolumeStep": 5
                    },
                    {
                        "Cpu": 8,
                        "DeviceType": "CUSTOM",
                        "EngineType": "RocksDB",
                        "Id": 175,
                        "Info": "Large-scale game apps with millions of DAUs"
                        "Iops": 28000,
                        "Memory": 32000,
                        "Status": 0,
                        "VolumeMax": 3000,
                        "VolumeMin": 25,
                        "VolumeStep": 5
                    }
                ],
                "Regions": [
                    {
                        "Area": "East China",
                        "IsDefaultRegion": 0,
                        "Region": "ap-shanghai",
                        "RegionConfig": [
                            {
                                "DrZone": [
                                    "ap-guangzhou-2",
                                    "ap-guangzhou-3",
                                    "ap-guangzhou-4",
                                    "ap-guangzhou-5",
                                    "ap-guangzhou-6",
                                    "ap-guangzhou-7"
                                ],
                                "EngineType": [
                                    "InnoDB",
                                    "RocksDB"
                                ],
                                "ExClusterRemoteRoZone": [],
                                "ExClusterStatus": 3,
                                "ExClusterZoneConf": {
                                    "BackupZone": [],
                                    "DeployMode": [
                                        0
                                    ],
                                    "MasterZone": [],
                                    "SlaveZone": [
                                },
                                "HourInstanceSaleMaxNum": 10000,
                                "IsBm": false,
                                "IsCustom": true,
                                "IsDefaultZone": false,
                                "IsSupportDr": true,
                                "IsSupportIpv6": false,
                                "IsSupportRemoteRo": true,
                                "IsSupportVpc": true,
                                "PayType": [
                                    "0",
                                    "1",
                                    "2"
                                ],
                                "ProtectMode": [
                                    "0",
                                    "1",
                                    "2"
                                ],
                                "RemoteRoZone": [
                                    "ap-beijing-1",
                                    "ap-beijing-2",
                                    "ap-beijing-3"
                                ],
                                "SellType": [
                                    {
                                        "ConfigIds": [],
                                        "EngineVersion": [],
                                        "TypeName": "CVM"
                                    },
                                    {
                                        "ConfigIds": [
                                            11,
                                            12,
                                            175
                                        ],
                                        "EngineVersion": [
                                            "5.5",
                                            "5.6",
                                            "5.7",
                                            "8.0"
                                        ],
                                        "TypeName": "Z3"
                                    }
                                ],
                                "Status": 3,
                                "Zone": "ap-shanghai-1",
                                "ZoneConf": {
                                    "BackupZone": [
                                        "ap-shanghai-1"
                                    ],
                                    "DeployMode": [
                                        0,
                                        1
                                    ],
                                    "MasterZone": [
                                        "ap-shanghai-1"
                                    ],
                                    "SlaveZone": [
                                        "ap-shanghai-1"
                                    ]
                                },
                                "ZoneId": 200001,
                                "ZoneName": "Shanghai Zone 1"
                            }
                        ],
                        "RegionName": "Shanghai"
                    }
                ]
            },
            "RequestId": "33ad58ce-64d3-5ef4-101a-1823da6f7cad"
        }
    }
    

    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.DBOperationActionError Database operation failed.
    InternalError.DBError Database exception
    InternalError.ExecHttpRequestError Failed to execute the HTTP request
    InternalError.HttpError Exceptional HTTP request
    InvalidParameter.JsonUnmarshalError Failed to deserialize JSON.
    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