Queries the details of regions in which Elastic Block Storage (EBS) features (such as async replication, CloudLens for EBS, and Dedicated Block Storage Cluster) are supported.
Debugging
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 resource. Valid values:
Default value: ear. |
AcceptLanguage | String | No | zh-CN | The language in which the regions and zones are named. This parameter corresponds to the
Default value: zh-CN. |
RegionId | String | No | cn-beijing | The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 17EE62D8-064E-5404-8B0D-72122478**** | The ID of the request. |
Regions | Array of region | Details about the regions. |
|
LocalName | String | China (Hangzhou) | The name of the region. |
RegionEndpoint | String | ebs.cn-hangzhou.aliyuncs.com | The endpoint of the region. |
RegionId | String | cn-hangzhou | The ID of the region. |
Zones | Array of zone | Details about the zones. |
|
LocalName | String | Hangzhou Zone H | The name of the zone. |
ZoneId | String | cn-hangzhou-h | The ID of the zone. |
ResourceTypes | Array of String | ear | The type of resource. Valid values:
|
Examples
Sample requests
http(s)://ebs.cn-beijing.aliyuncs.com/?Action=DescribeRegions
&ResourceType=ear
&AcceptLanguage=zh-CN
&RegionId=cn-beijing
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeRegionsResponse>
<RequestId>17EE62D8-064E-5404-8B0D-72122478****</RequestId>
<Regions>
<LocalName>China (Hangzhou)</LocalName>
<RegionEndpoint>ebs.cn-hangzhou.aliyuncs.com</RegionEndpoint>
<RegionId>cn-hangzhou</RegionId>
<Zones>
<LocalName>Hangzhou Zone H</LocalName>
<ZoneId>cn-hangzhou-h</ZoneId>
</Zones>
</Regions>
</DescribeRegionsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "17EE62D8-064E-5404-8B0D-72122478****",
"Regions" : [ {
"LocalName":"China (Hangzhou)",
"RegionEndpoint" : "ebs.cn-hangzhou.aliyuncs.com",
"RegionId" : "cn-hangzhou",
"Zones" : [ {
"LocalName": "Hangzhou Zone H"
"ZoneId" : "cn-hangzhou-h"
} ]
} ]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | NoSuchResource | The specified resource does not exist. | The error message returned because the specified resource does not exist. |
504 | RequestTimeout | The request is timeout, please try again later. | The error message returned because the request timed out. Try again later. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | The error message returned because an internal error has occurred. |
403 | Forbidden | User is not authorized to operate. | The error message returned because you are not authorized to manage the resource. Check the permissions of your account or contact your Alibaba Cloud account administrator. |
403 | Forbidden.Action | User is not authorized to operate this action. | The error message returned because you are not authorized to perform this operation. Check the permissions of your account or contact your Alibaba Cloud account administrator. |
For a list of error codes, visit the API Error Center.