Queries 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.

AcceptLanguage String No zh-CN

The supported natural language. Valid values:

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

Response parameters

Parameter Type Example Description
Regions Array of Region

The regions.

LocalName String China (Hangzhou)

The name of the region.

RegionEndpoint String alb.cn-hangzhou.aliyuncs.com

The endpoint of region service.

RegionId String cn-hangzhou

The ID of the region.

RequestId String 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeRegions
&AcceptLanguage=zh-CN
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeRegionsResponse>
    <Regions>
        <LocalName>China (Hangzhou)</LocalName>
        <RegionEndpoint>alb.cn-hangzhou.aliyuncs.com</RegionEndpoint>
        <RegionId>cn-hangzhou</RegionId>
    </Regions>
    <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>
</DescribeRegionsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Regions" : [ {
    "LocalName":"China (Hangzhou)",
    "RegionEndpoint" : "alb.cn-hangzhou.aliyuncs.com",
    "RegionId" : "cn-hangzhou"
  } ],
  "RequestId" : "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3"
}

Error codes

For a list of error codes, visit the API Error Center.