You can call this operation to query the most recent region list.

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
AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No DescribeRegions

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

Response parameters

Parameter Type Example Description
Regions

The list of returned regions.

Region

The details of a returned region.

RegionId String cn-hangzhou

The ID of the region. For example, cn-hangzhou.

Zones

The list of zones.

Zone

The details of a zone.

VpcEnabled Boolean true

Indicates whether a VPC is enabled.

ZoneId String cn-hangzhou-g

The ID of the zone. For example, cn-hangzhou-g.

RequestId String E056BF3D-1E4F-4E39-B729-8491A74B301A

The ID of the request.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeRegionsResponse>
  <Regions>
        <Region>
              <RegionId>cn-hangzhou</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-hangzhou-i</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-hangzhou-g</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-shanghai</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-shanghai-e</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-shanghai-f</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-shanghai-d</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-beijing</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-beijing-h</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-beijing-g</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-beijing-e</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-zhangjiakou</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-zhangjiakou-b</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-zhangjiakou-a</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-huhehaote</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-huhehaote-a</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-shenzhen</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-shenzhen-e</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>cn-hongkong</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-hongkong-b</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>cn-hongkong-c</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>ap-southeast-1</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>ap-southeast-1c</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>ap-southeast-1a</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>ap-southeast-5</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>ap-southeast-5b</ZoneId>
                    </Zone>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>ap-southeast-5a</ZoneId>
                    </Zone>
              </Zones>
        </Region>
        <Region>
              <RegionId>us-west-1</RegionId>
              <Zones>
                    <Zone>
                          <VpcEnabled>true</VpcEnabled>
                          <ZoneId>us-west-1a</ZoneId>
                    </Zone>
              </Zones>
        </Region>
  </Regions>
</DescribeRegionsResponse>

JSON format

{
	"Regions":{
		"Region":[
			{
				"RegionId":"cn-hangzhou",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-hangzhou-i"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-hangzhou-g"
						}
					]
				}
			},
			{
				"RegionId":"cn-shanghai",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-shanghai-e"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-shanghai-f"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-shanghai-d"
						}
					]
				}
			},
			{
				"RegionId":"cn-beijing",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-beijing-h"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-beijing-g"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-beijing-e"
						}
					]
				}
			},
			{
				"RegionId":"cn-zhangjiakou",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-zhangjiakou-b"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-zhangjiakou-a"
						}
					]
				}
			},
			{
				"RegionId":"cn-huhehaote",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-huhehaote-a"
						}
					]
				}
			},
			{
				"RegionId":"cn-shenzhen",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-shenzhen-e"
						}
					]
				}
			},
			{
				"RegionId":"cn-hongkong",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"cn-hongkong-b"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"cn-hongkong-c"
						}
					]
				}
			},
			{
				"RegionId":"ap-southeast-1",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"ap-southeast-1c"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"ap-southeast-1a"
						}
					]
				}
			},
			{
				"RegionId":"ap-southeast-5",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"ap-southeast-5b"
						},
						{
							"VpcEnabled":true,
							"ZoneId":"ap-southeast-5a"
						}
					]
				}
			},
			{
				"RegionId":"us-west-1",
				"Zones":{
					"Zone":[
						{
							"VpcEnabled":true,
							"ZoneId":"us-west-1a"
						}
					]
				}
			}
		]
	}
}

Error codes

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