Queries the list of regions for Function Compute 2.0.
Try it now
Test
RAM authorization
Request syntax
GET /2021-04-06/regions HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AcceptLanguage |
string |
No |
Filters the returned results by language, such as Chinese or English. For more information, see RFC 7231. Valid values: zh-CN: Chinese. en-US: English. ja: Japanese. Default value: zh-CN. |
zh-CN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response |
||
| Regions |
object |
The region information. |
|
| Region |
array<object> |
The collection of region information. |
|
|
object |
The region object. |
||
| RegionId |
string |
The region ID. |
cn-qingdao |
| LocalName |
string |
The region name. |
华北1(青岛) |
Sample success response in JSON format
{
"Regions": {
"Region": [
{
"RegionId": "cn-qingdao",
"LocalName": "华北 1(青岛)"
}
]
}
}
Examples
Success response
JSON format
{
"Regions": {
"Region": [
{
"RegionId": "cn-qingdao",
"LocalName": "华北1(青岛)"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.