Domain name for API request: cwp.intl.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.
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. |
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. |
This example shows you how to query the list of regions supported by CVM.
POST / HTTP/1.1
Host: cwp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMachineRegionList
<Common request parameters>
{}
{
"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"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
本页内容是否解决了您的问题?