Domain name for API request: cwp.tencentcloudapi.com.
This API is used to obtain the list of machine 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: DescribeMachineRegions. |
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 |
---|---|---|
CVM | Array of RegionInfo | List of Cloud Virtual Machine regions |
BM | Array of RegionInfo | List of BM machine regions |
LH | Array of RegionInfo | List of Lighthouse regions |
ECM | Array of RegionInfo | List of Edge Computing Machine regions |
Other | Array of RegionInfo | List of Hybrid Cloud regions |
ALL | Array of RegionInfo | List of all regions (including above regions) |
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. |
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMachineRegions
<Common request parameters>
{}
{
"Response": {
"CVM": [
{
"Region": "ap-guangzhou",
"RegionName": "South China (Guangzhou)",
"RegionId": "1",
"RegionCode": "gz",
"RegionNameEn": "South China (Guangzhou)"
}
],
"BM": [
{
"Region": "ap-guangzhou",
"RegionName": "South China (Guangzhou)",
"RegionId": "1",
"RegionCode": "gz",
"RegionNameEn": "South China (Guangzhou)"
}
],
"LH": [
{
"Region": "ap-guangzhou",
"RegionName": "South China (Guangzhou)",
"RegionId": "1",
"RegionCode": "gz",
"RegionNameEn": "South China (Guangzhou)"
}
],
"ECM": [
{
"Region": "ap-guangzhou",
"RegionName": "South China (Guangzhou)",
"RegionId": "1",
"RegionCode": "gz",
"RegionNameEn": "South China (Guangzhou)"
}
],
"Other": [
{
"Region": "ap-others",
"RegionName": "Other regions (other)",
"RegionId": "47",
"RegionCode": "others",
"RegionNameEn": "South China (Guangzhou)"
}
],
"ALL": [
{
"Region": "ap-guangzhou",
"RegionName": "South China (Guangzhou)",
"RegionId": "1",
"RegionCode": "gz",
"RegionNameEn": "South China (Guangzhou)"
}
],
"RequestId": "3d4ffdf0-f350-c3ea-d09c-3f5313e044fd"
}
}
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 |
---|---|
InternalError | Internal error |
InvalidParameter.InvalidFormat | Incorrect parameter format. |
InvalidParameter.MissingParameter | Missing parameter. |
InvalidParameterValue | Invalid parameter value. |
MissingParameter | Missing parameter error. |
Was this page helpful?