Queries the regions and zones supported by Elastic Container Instance.
Debugging
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 | cn-hangzhou |
The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Regions | Array of Region |
The details about the regions. |
|
RecommendZones | List | cn-hangzhou-j |
The recommended zones. Recommended zones are zones that have relatively sufficient resources in the current region. |
RegionEndpoint | String | eci.aliyuncs.com |
The endpoint of the region. |
RegionId | String | cn-hangzhou |
The ID of the region. |
Zones | List | cn-hangzhou-g |
The IDs of the zones. |
RequestId | String | 89945DD3-9072-47D0-A318-353284CFC7B3 |
The ID of the request. |
Examples
Sample requests
https://eci.aliyuncs.com/?Action=DescribeRegions
&RegionId=cn-hangzhou
&<Common request parameters>|
Sample success responses
XML
format
<DescribeRegionsResponse>
<RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>
<Regions>
<RecommendZones>cn-hangzhou-h</RecommendZones>
<RecommendZones>cn-hangzhou-i</RecommendZones>
<RecommendZones>cn-hangzhou-j</RecommendZones>
<RegionId>cn-hangzhou</RegionId>
<RegionEndpoint>eci.aliyuncs.com</RegionEndpoint>
<Zones>cn-hangzhou-g</Zones>
<Zones>cn-hangzhou-e</Zones>
<Zones>cn-hangzhou-f</Zones>
<Zones>cn-hangzhou-h</Zones>
<Zones>cn-hangzhou-i</Zones>
<Zones>cn-hangzhou-j</Zones>
</Regions>
</DescribeRegionsResponse>
JSON
format
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3",
"Regions": [
{
"RecommendZones": [
"cn-hangzhou-h",
"cn-hangzhou-i",
"cn-hangzhou-j"
],
"RegionId": "cn-hangzhou",
"RegionEndpoint": "eci.aliyuncs.com",
"Zones": [
"cn-hangzhou-g",
"cn-hangzhou-e",
"cn-hangzhou-f",
"cn-hangzhou-h",
"cn-hangzhou-i",
"cn-hangzhou-j"
]
}
]
}
Error codes
For a list of error codes, visit the API Error Center.