Queries the regions where Function Compute 2.0 is available.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /2021-04-06/regions HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| AcceptLanguage | string | No | The language in which the list of regions is returned. For more information, see RFC 7231. Valid values: zh-CN: Chinese en-US: English ja: Japanese Default value: en-US | zh-CN |
Response parameters
Sample success response in JSON format:
{
"Regions": {
"Region": [
{
"RegionId": "cn-qingdao",
"RegionEndpoint": "cn-qingdao.fc.aliyuncs.com",
"LocalName": "China (Qingdao)"
}
]
}
}
Examples
Sample success responses
JSONformat
{
"Regions": {
"Region": [
{
"RegionId": "cn-qingdao",
"LocalName": ""
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
