Queries DescribeRegions available Alibaba cloud regions.

For more information, seeregions and zones.

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.

AccessKeyId string No LTAI4FoDkCf4DU1bic1V****

CallAssumeRole this AccessKey is required when you call the operation.

Response parameters

Prameter Type Sample response Description
Regions

The list of regions.

region

The region where the instance is located.

RegionId Boolean cn-shanghai

The ID of the region.

RequestId String Cost

The ID of the request.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeRegionsResponse>
      <RequestId>38EC7366-F5A9-46B1-BDB1-0FDC2E296397</RequestId>
      <Regions>
            <Region>
                  <RegionId>cn-shanghai</RegionId>
            </Region>
            <Region>
                  <RegionId>cn-qingdao</RegionId>
            </Region>
      </Regions>
</DescribeRegionsResponse>

JSON format

{
	"DescribeRegionsResponse":{
		"RequestId":"38EC7366-F5A9-46B1-BDB1-0FDC2E296397",
		"Regions":{
			"Region":[
				{
					"RegionId":"cn-shanghai"
				},
				{
					"RegionId":"cn-qingdao"
				}
			]
		}
	}
}

Error codes

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