Queries all regions supported by Anti-DDoS Origin Enterprise.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the Anti-DDoS Origin instance belongs in Resource Management. By default, this parameter is empty, which indicates that the instance belongs to the default resource group. For more information about resource groups, see Create a resource group. |
rg-acfm2pz25js**** |
| RegionId |
string |
No |
The region ID to query. Default value: ap-southeast-1, which indicates that the regions of cloud assets that can be protected by the Anti-DDoS Origin instance in the China (Hangzhou) region are queried. To query other region IDs, see Regions and zones to obtain the corresponding RegionId. |
cn-hangzhou |
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
F7CA8B4E-FB15-4336-A351-8DC29D66EA82 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Regions |
array<object> |
The region information of cloud assets that can be protected by Anti-DDoS Origin, including region IDs and names. |
|
|
object |
The region information. |
||
| RegionEnName |
string |
The English name of the region. |
China (Hangzhou) |
| RegionName |
string |
The Chinese name of the region. |
华东1(杭州) |
| RegionId |
string |
The region ID. |
cn-hangzhou |
Examples
Success response
JSON format
{
"Code": "200",
"RequestId": "F7CA8B4E-FB15-4336-A351-8DC29D66EA82",
"Success": true,
"Regions": [
{
"RegionEnName": "China (Hangzhou)",
"RegionName": "华东1(杭州)",
"RegionId": "cn-hangzhou"
}
]
}
Error response
JSON format
{
"RequestId": "9C48E43E-58A6-4A08-A858-4C9BB9631870",
"Regions": [
{
"RegionId": "cn-shenzhen"
},
{
"RegionId": "cn-qingdao"
},
{
"RegionId": "cn-beijing"
},
{
"RegionId": "cn-shanghai"
},
{
"RegionId": "cn-hongkong"
},
{
"RegionId": "cn-huhehaote"
},
{
"RegionId": "cn-zhangjiakou"
},
{
"RegionId": "us-west-1"
},
{
"RegionId": "cn-hangzhou"
}
],
"Success": true,
"Code": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.