Queries available regions where specified cloud resources can be deployed.

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 language of the response. Valid values:

  • zh-CN: Chinese. This is the default value.
  • en-US: English.

Response parameters

Parameter Type Example Description
Regions Array

The list of available regions.

Region
LocalName String China (Qingdao)

The name of the region.

RegionEndpoint String vpc.aliyuncs.com

The endpoint of the region.

RegionId String cn-qingdao

The ID of the region.

RequestId String 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F

The ID of the request

Examples

Sample requests

http(s)://vpc.aliyuncs.com/? Action=DescribeRegions
&<Common request parameters>

Sample success responses

XML format

<DescribeRegionsResponse> 
  <RequestId>2F026E79-30AD-47B6-9E7D-D1D4BA77F1F1</RequestId>
  <Regions>
        <Region>
              <RegionId>cn-qingdao</RegionId>
              <RegionEndpoint>vpc.aliyuncs.com</RegionEndpoint>
              <LocalName>China (Qingdao)</LocalName>
        </Region>
        <Region>
              <RegionId>eu-central-1</RegionId>
              <RegionEndpoint>vpc.eu-central-1.aliyuncs.com</RegionEndpoint>
              <LocalName>Germany (Frankfurt)</LocalName>
        </Region>
  </Regions>
</DescribeRegionsResponse>

JSON format

{
    "RequestId": "2F026E79-30AD-47B6-9E7D-D1D4BA77F1F1", 
    "Regions": {
        "Region": [
            {
                "RegionId": "cn-qingdao", 
                "RegionEndpoint": "vpc.aliyuncs.com", 
                "LocalName": "China (Qingdao)"
            }, 
            {
                "RegionId": "eu-central-1", 
                "RegionEndpoint": "vpc.eu-central-1.aliyuncs.com", 
                "LocalName": "Germany (Frankfurt)"
            }
        ]
    }
}

Error codes

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