Queries Alibaba Cloud regions. When you call this operation, you can specify parameters, such as InstanceChargeType and ResourceType, in the request.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceChargeType |
string |
No |
The billing method of the instance. For more information, see Billing overview. Valid values:
Default value: PostPaid. |
PrePaid |
| ResourceType |
string |
No |
The type of resource. Valid values:
Default value: instance. |
instance |
| AcceptLanguage |
string |
No |
The natural language that is used to filter responses. For more information, see RFC 7231. Valid values:
Default value: zh-CN. Valid values:
|
zh-CN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Regions |
object |
||
| Region |
array<object> |
The information of the regions. |
|
|
object |
|||
| Status |
string |
Indicates whether clusters are sold out. Valid values:
|
available |
| RegionEndpoint |
string |
The endpoint of the region. |
ecs.cn-qingdao.aliyuncs.com |
| LocalName |
string |
The name of the region. |
华北1(青岛) |
| RegionId |
string |
The ID of the region. |
cn-qingdao |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Regions": {
"Region": [
{
"Status": "available",
"RegionEndpoint": "ecs.cn-qingdao.aliyuncs.com",
"LocalName": "华北1(青岛)",
"RegionId": "cn-qingdao"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Unauthorized.EmptyRegion | The specified account has no access authority to any region. | |
| 403 | Invalid.InstanceChargeType | The specified instanceChargeType is not valid. | |
| 404 | InvalidAcceptLanguage.NotFound | Only Chinese (zh-CN), English (en-US), and Japanese (ja) are allowed. | Your selected language is invalid. Only Chinese, English, and Japanese are supported. |
| 404 | InvalidResourceType.NotFound | The ResourceType provided does not exist in our records. | The specified resource type does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.