Call the DescribeRegions operation to query a list of available regions. You can filter the list by criteria such as the scenario and VPC type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeRegions |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en. Note
This parameter has a lower priority than AcceptLanguage. |
zh |
| UserClientIp |
string |
No |
The IP address of the user. |
192.0.XX.XX |
| AcceptLanguage |
string |
No |
The supported language. Valid values:
Default value: en-US. Note
This parameter has a higher priority than Lang. |
zh-CN |
| AuthorizedUserId |
integer |
No |
The ID of the Alibaba Cloud account to which the authorized resources belong. |
141339776561**** |
| VpcType |
string |
No |
The type of the VPC. Valid values:
|
STANDARD |
| Scene |
string |
No |
The scenario. Valid values:
|
AUTH |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
1E0F6898-F854-5133-A4CB-9C094152D05A |
| Regions |
object |
||
| Region |
array<object> |
A list of regions. |
|
|
object |
The details of a region. |
||
| LocalName |
string |
The display name of the region. The name is displayed in the language that you specified for the request. |
华东2(上海) |
| RegionName |
string |
The name of the region. |
华东2(上海) |
| RegionEndpoint |
string |
The endpoint of the service in the region. |
pvtz.aliyuncs.com |
| RegionId |
string |
The ID of the region. |
cn-beijing |
Examples
Success response
JSON format
{
"RequestId": "1E0F6898-F854-5133-A4CB-9C094152D05A",
"Regions": {
"Region": [
{
"LocalName": "华东2(上海)",
"RegionName": "华东2(上海)",
"RegionEndpoint": "pvtz.aliyuncs.com",
"RegionId": "cn-beijing"
}
]
}
}
Error response
JSON format
{
"Message": "The request processing has failed due to some unknown error, exception or failure",
"RequestId": "E246E023-F2EB-4034-83F7-B13FCF31459C",
"Code": "InternalError"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.