DescribeRegions
Queries the regions where the cloud-native API gateway is available for the current account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:DescribeRegions |
none |
*All Resource
|
None | None |
Request syntax
GET /v1/regions HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| language |
string |
No |
The language of the response. Valid values: zh, en. |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The unique ID of the request. |
E6BD6C79-32B1-5D7E-A89A-93C5A6B7xxxx |
| code |
string |
The response status code. |
200 |
| message |
string |
The response message. |
success |
| data |
array<object> |
The list of regions. |
|
|
object |
The region details. |
||
| regionId |
string |
The region ID. |
cn-hangzhou |
| localName |
string |
The display name of the region. |
China (Beijing) |
Examples
Success response
JSON format
{
"requestId": "E6BD6C79-32B1-5D7E-A89A-93C5A6B7xxxx",
"code": "200",
"message": "success",
"data": [
{
"regionId": "cn-hangzhou",
"localName": "China (Beijing)"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.