tencent cloud

Feedback

DescribeRegions

Last updated: 2023-09-18 11:41:44

1. API Description

Domain name for API request: sqlserver.tencentcloudapi.com.

This API is used to query purchasable 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: DescribeRegions.
Version Yes String Common Params. The value used for this API: 2018-03-28.
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
TotalCount Integer Total number of regions returned
RegionSet Array of RegionInfo Region information array
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying all regions

Input Example

https://sqlserver.tencentcloudapi.com/?Action=DescribeRegions
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "9b0beca5-f3ea-44d3-97de-ec8f02effaea",
        "TotalCount": 9,
        "RegionSet": [
            {
                "Region": "ap-hongkong",
                "RegionName": "Hong Kong (China)",
                "RegionId": 5,
                "RegionState": "AVAILABLE"
            },
            {
                "Region": "ap-shanghai-fsi",
                "RegionName": "Shanghai Finance",
                "RegionId": 7,
                "RegionState": "AVAILABLE"
            },
            {
                "Region": "ap-shantou",
                "RegionName": "Shantou",
                "RegionId": 2,
                "RegionState": "UNAVAILABLE"
            },
            {
                "Region": "ap-tianjin",
                "RegionName": "Tianjin",
                "RegionId": 3,
                "RegionState": "UNAVAILABLE"
            },
            {
                "Region": "na-toronto",
                "RegionName": "North America",
                "RegionId": 6,
                "RegionState": "UNAVAILABLE"
            },
            {
                "Region": "ap-beijing",
                "RegionName": "Beijing",
                "RegionId": 8,
                "RegionState": "AVAILABLE"
            },
            {
                "Region": "ap-shenzhen-fsi",
                "RegionName": "Shenzhen Finance",
                "RegionId": 11,
                "RegionState": "AVAILABLE"
            },
            {
                "Region": "ap-guangzhou",
                "RegionName": "Guangzhou",
                "RegionId": 1,
                "RegionState": "AVAILABLE"
            },
            {
                "Region": "ap-shanghai",
                "RegionName": "Shanghai",
                "RegionId": 4,
                "RegionState": "AVAILABLE"
            }
        ]
    }
}

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.DBError Database error.
InternalError.DBError Database error
InternalError.SystemError System error.
InvalidParameter.InputIllegal Input error.
InvalidParameter.ParamsAssertFailed An error occurred while converting parameter assertion.
InvalidParameterValue.IllegalRegion Invalid region.
UnauthorizedOperation.PermissionDenied CAM authentication error.