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

RegionId String No eu-west-1

The ID of the region.

Response parameters

Parameter Type Example Description
Regions Array of Region

The list of regions.

Region
LocalName String UK (London)

The name of the region.

RegionEndpoint String https://privatelink.eu-west-1.aliyuncs.com

The endpoint of the region.

RegionId String eu-west-1

The ID of the region.

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

The ID of the request.

Examples

Sample requests

https://[Endpoint]/?Action=DescribeRegions
&<Common request parameters>

Sample success responses

XML format

<DescribeRegionsResponse> 
    <RequestId>611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F</RequestId>
        <Region>
                <RegionId>eu-west-1</RegionId>
                <RegionEndpoint>privatelink.eu-west-1.aliyuncs.com</RegionEndpoint>
                <LocalName>UK (London)</LocalName>
        </Region>    
</DescribeRegionsResponse>

JSON format

{
  "DescribeRegionsResponse": {
    "RequestId": "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F",
    "Region": {
      "RegionId": "eu-west-1",
      "RegionEndpoint": "privatelink.eu-west-1.aliyuncs.com",
      "LocalName": "UK (London)"
    }
  }
}

Error codes

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