Queries the region list.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeRegions | The operation that you want to perform. Set the value to DescribeRegions. |
AcceptLanguage | String | No | zh-CN | The supported languages. Valid values:
|
Lang | String | No | en | The language. |
UserClientIp | String | No | 192.0.2.0 | The IP address of the client. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Regions | Array | The list of regions. | |
Region | The information about a region. | ||
LocalName | String | China North 2 (Beijing) | The Chinese name of the region. |
RegionEndpoint | String | pvtz.aliyuncs.com | The endpoint of Alibaba Cloud DNS PrivateZone in the region. |
RegionId | String | cn-shenzhen | The ID of the region. |
RegionName | String | China South 1 | The name of the region. |
RequestId | String | AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60 | The ID of the request. |
Examples
Sample requests
http://pvtz.aliyuncs.com/?Action=DescribeRegions
&<Common request parameters>
Sample success responses
XML
format
<DescribeRegionsResponse>
<RequestId>AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60</RequestId>
<Regions>
<Region>
<RegionName>China North 2</RegionName>
<RegionId>cn-beijing</RegionId>
</Region>
<Region>
<RegionName>China South 1</RegionName>
<RegionId>cn-shenzhen</RegionId>
</Region>
</Regions>
</DescribeRegionsResponse>
JSON
format
{
"RequestId":"8043FAEA-4E1B-4349-AEBF-9D0FCCE5AE2F"
"Regions":{
"Region":[
{
"RegionName":"China North 2"
"RegionId":"cn-beijing"
},
{
"RegionName":"China South 1"
" RegionId":"cn-shenzhen"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.