Queries DescribeRegions available Alibaba cloud regions.

For more information, see regions 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****

Call AssumeRole this AccessKey is required when you call the operation.

Response parameters

Parameter Type Example Description
Regions

The list of regions.

Region

The ID of the region where the production studio resides.

RegionId String 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 code

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