tencent cloud

文档反馈

DescribeRegions

最后更新时间:2023-06-12 16:10:38

    1. API Description

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

    This API is used to query the list of regions that supports TAT.
    If the RegionState is AVAILABLE, it means that TAT is available in the region. If no value is returned, TAT is not available in the 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: DescribeRegions.
    Version Yes String Common Params. The value used for this API: 2020-10-28.
    Region No String Common Params. This parameter is not required for this API.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Number of regions
    RegionSet Array of RegionInfo Region information list
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying regions that support TAT

    Input Example

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

    Output Example

    {
        "Response": {
            "TotalCount": 13,
            "RegionSet": [
                {
                    "Region": "ap-guangzhou",
                    "RegionName": "Guangzhou",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-nanjing",
                    "RegionName": "Nanjing",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-shanghai",
                    "RegionName": "Shanghai",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-hongkong",
                    "RegionName": "Hong Kong (China)",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-beijing",
                    "RegionName": "Beijing",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-singapore",
                    "RegionName": "Singapore",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "na-siliconvalley",
                    "RegionName": "Silicon Valley",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-chengdu",
                    "RegionName": "Chengdu",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "eu-frankfurt",
                    "RegionName": "Frankfurt",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-seoul",
                    "RegionName": "Seoul",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-chongqing",
                    "RegionName": "Chongqing",
                    "RegionState": "AVAILABLE"
                },
                {
                    "Region": "ap-mumbai",
                    "RegionName": "Mumbai",
                    "RegionState": "AVAILABLE"
                },
            ],
            "RequestId": "6fb7f9db-b7da-4cb8-a912-3a3b1690f3a6"
        }
    }
    

    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
    InternalError Internal error.
    UnauthorizedOperation.CamAuthFailed CAM authentication failed.
    UnauthorizedOperation.InvalidToken Invalid token.
    UnauthorizedOperation.MFAExpired The Multi-factor authentication (MFA) code expired.
    UnauthorizedOperation.MFANotFound Multi-factor authentication (MFA) does not exist.