tencent cloud

Feedback

DescribeMachineRegionList

Last updated: 2024-08-27 11:43:54

1. API Description

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

This API is used to query the list of host 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: DescribeMachineRegionList.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.

3. Output Parameters

Parameter Name Type Description
RegionList Array of RegionListDetail CVM type region list
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 Example

This example shows you how to query the list of regions supported by CVM.

Input Example

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

{}

Output Example

{
    "Response": {
        "RegionList": [
            {
                "MachineType": "ALL",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-guangzhou-ecm-cm2",
                        "RegionName": "South China (Guangzhou Mobile 2)",
                        "RegionId": 1063,
                        "RegionCode": "ap-guangzhou-ecm-cm2",
                        "RegionNameEn": "china-south (ap-guangzhou-ecm-cm2)"
                    },
                    {
                        "Region": "ap-beijing-ecm-cm3",
                        "RegionName": "North China (Beijing Mobile 3)",
                        "RegionId": 1058,
                        "RegionCode": "ap-beijing-ecm-cm3",
                        "RegionNameEn": "china-north (ap-beijing-ecm-cm3)"
                    },
                    {
                        "Region": "ap-nanjing",
                        "RegionName": "East China (Nanjing)",
                        "RegionId": 33,
                        "RegionCode": "nj",
                        "RegionNameEn": "East China (Nanjing)"
                    }
                ]
            },
            {
                "MachineType": "LH",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-beijing",
                        "RegionName": "North China (Beijing)",
                        "RegionId": 8,
                        "RegionCode": "bj",
                        "RegionNameEn": "North China (Beijing)"
                    },
                    {
                        "Region": "ap-guangzhou",
                        "RegionName": "South China (Guangzhou)",
                        "RegionId": 1,
                        "RegionCode": "gz",
                        "RegionNameEn": "South China (Guangzhou)"
                    },
                    {
                        "Region": "ap-shanghai",
                        "RegionName": "East China (Shanghai)",
                        "RegionId": 4,
                        "RegionCode": "sh",
                        "RegionNameEn": "East China (Shanghai)"
                    }
                ]
            },
            {
                "MachineType": "Other",
                "CloudFrom": 1,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-others",
                        "RegionName": "Other regions (other)",
                        "RegionId": 47,
                        "RegionCode": "others",
                        "RegionNameEn": "Others (Other)"
                    }
                ]
            },
            {
                "MachineType": "Other",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-others",
                        "RegionName": "Other regions (other)",
                        "RegionId": 47,
                        "RegionCode": "others",
                        "RegionNameEn": "Others (Other)"
                    }
                ]
            },
            {
                "MachineType": "ECM",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-guangzhou-ecm-cm2",
                        "RegionName": "South China (Guangzhou Mobile 2)",
                        "RegionId": 1063,
                        "RegionCode": "ap-guangzhou-ecm-cm2",
                        "RegionNameEn": "china-south (ap-guangzhou-ecm-cm2)"
                    }
                ]
            },
            {
                "MachineType": "EKS-NATIVE",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-beijing",
                        "RegionName": "North China (Beijing)",
                        "RegionId": 8,
                        "RegionCode": "bj",
                        "RegionNameEn": "North China (Beijing)"
                    }
                ]
            },
            {
                "MachineType": "CVM",
                "CloudFrom": 0,
                "RegionList": [
                    {
                        "Region": "all-regions",
                        "RegionName": "All regions",
                        "RegionId": 999,
                        "RegionCode": "all",
                        "RegionNameEn": "All regions"
                    },
                    {
                        "Region": "ap-guangzhou",
                        "RegionName": "South China (Guangzhou)",
                        "RegionId": 1,
                        "RegionCode": "gz",
                        "RegionNameEn": "South China (Guangzhou)"
                    }
                ]
            }
        ],
        "RequestId": "94245821-efb0-4220-a909-6b58888e2ffe"
    }
}

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
ResourceNotFound The resource does not exist.