You can call this operation to query the list of available regions.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeRegions

The operation that you want to perform. Set the value to DescribeRegions.

Lang String No en

The language of the specific content returned in the response.

UserClientIp String No 1.1.1.1

The IP address of the client.

AcceptLanguage String No zh-CN

The supported languages. Valid values:

  • zh-CN: Chinese
  • en-US: English
  • ja: Japanese

Response parameters

Parameter Type Example Description
RequestId String AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60

The ID of the request.

Regions Array

The list of regions.

RegionId String cn-shenzhen

The ID of the region.

RegionName String China North 2

The name of the region.

LocalName String China South 1

The display name of the region. It varies with the current language.

RegionEndpoint String pvtz.aliyuncs.com

The endpoint of Alibaba Cloud Domain Name System (DNS) PrivateZone in the region.

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.