tencent cloud

APIs

DescribeSaleInfo

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-05-27 16:17:42

1. API Description

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

This API is used to query available regions.

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: DescribeSaleInfo.
Version Yes String Common Params. The value used for this API: 2021-11-22.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
SrcRegion No String

Region of the disaster recovery primary instance

InstanceId No String

Instance id

Input this parameter to return the sales information of the availability zone in the region where this instance is located.

InstanceType No String

Specify the sales information that supports a certain type instance.

Enumeration value:

  • serverless: Returns all regions that support serverless instance type.

Default value: None

Currently only support specifying serverless. Import other info or leave it blank to return all sales region information by default.

3. Output Parameters

Parameter Name Type Description
RegionList Array of DescribeSaleRegionInfo

Return marketable 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 Return purchasable regions

Input Example

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

{
    "InstanceType": "serverless"
}

Output Example

{
    "Response": {
        "RegionList": [
            {
                "AvailableZoneNum": 3,
                "Enable": 1,
                "IsSupportServerless": true,
                "IsSupportedLogReplica": true,
                "Region": "ap-guangzhou",
                "RegionName": "广州",
                "ZoneGroup": [
                    {
                        "AvailableDiskTypes": [],
                        "IsSupportServerless": true,
                        "SupportTypes": [
                            "0"
                        ],
                        "ZoneNum": 1,
                        "Zones": [
                            "ap-guangzhou-7"
                        ]
                    }
                ],
                "ZoneList": [
                    {
                        "AvailableDiskTypes": [],
                        "Enable": 1,
                        "IsDefaultMaster": 0,
                        "IsSupportServerless": true,
                        "SupportTypes": [
                            "0"
                        ],
                        "Zone": "ap-guangzhou-7",
                        "ZoneName": "广州七区"
                    }
                ]
            }
        ],
        "RequestId": "cc7f4880-5ed6-4daa-a45f-df2a5780d573"
    }
}

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.DBQueryZoneError Query Available Sale Zones failed.

Ajuda e Suporte

Esta página foi útil?

comentários