Queries the details of regions in which Elastic Block Storage (EBS) features are supported.

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.

ResourceType String No ear

The type of the resource. Only the regions in which the async replication feature is supported can be queried. Set the value to ear.

Default value: ear.

AcceptLanguage String No zn-CN

The language in which the regions and zones are named. This parameter corresponds to the LocalName response parameter. Valid values:

  • zh-CN: Chinese
  • en-US: English
  • ja: Japanese

Default value: zh-CN.

Response parameters

Parameter Type Example Description
RequestId String 17EE62D8-064E-5404-8B0D-721224789E79

The ID of the request.

Regions Array of region

Details about the regions.

LocalName String US (Silicon Valley)

The name of the region.

RegionEndpoint String ebs.us-west-1.aliyuncs.com

The endpoint of the region.

RegionId String us-west-1

The ID of the region.

Zones Array of zone

Details about the zones.

LocalName String Silicon Valley Zone A

The name of the zone.

ZoneId String us-west-1a

The ID of the zone.

Examples

Sample requests

https://ebs.cn-beijing.aliyuncs.com/?Action=DescribeRegions
&ResourceType=ear
&AcceptLanguage=zn-CN
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeRegionsResponse>
    <RequestId>17EE62D8-064E-5404-8B0D-721224789E79</RequestId>
    <Regions>
        <RegionId>us-west-1</RegionId>
        <RegionEndpoint>ebs.us-west-1.aliyuncs.com</RegionEndpoint>
        <LocalName>US (Silicon Valley)</LocalName>
        <Zones>
            <ZoneId>us-west-1a</ZoneId>
            <LocalName>Silicon Valley Zone A</LocalName>
        </Zones>
        <Zones>
            <ZoneId>us-west-1b</ZoneId>
            <LocalName>Silicon Valley Zone B</LocalName>
        </Zones>
    </Regions>
</DescribeRegionsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "17EE62D8-064E-5404-8B0D-721224789E79",
  "Regions" : [ {
    "RegionId" : "us-west-1",
    "RegionEndpoint" : "ebs.us-west-1.aliyuncs.com",
    "LocalName": "US (Silicon Valley)"
    "Zones" : [ {
      "ZoneId" : "us-west-1a",
      "LocalName" : "Silicon Valley Zone A"
    }, {
      "ZoneId" : "us-west-1b",
      "LocalName" : "Silicon Valley Zone B"
    } ]
  } ]
}

Error codes

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