Queries the available regions for the product.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ehpc:ListRegions | list | *All Resource
| None | None |
Request syntax
POST HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
SpecCode | string | No | The product name. The default value is Next. Valid values:
| Next |
AcceptLanguage | string | No | The language of the response. The default value is zh-CN. Valid values:
| zh-CN |
MaxResults | integer | No | The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | 20 |
NextToken | string | No | The token to retrieve the next page of results. | caeba0bbb2be03f84eb48b699f0axxxx |
Response elements
Element | Type | Description | Example |
object | Schema of Response | ||
RequestId | string | The request ID. | 04F0F334-1335-436C-A1D7-6C044FE73368 |
TotalCount | integer | The total number of entries that meet the query conditions. | 16 |
MaxResults | integer | The maximum number of entries returned per page. Valid values: 1 to 100. Default value: 20. | 20 |
NextToken | string | The token to retrieve the next page of results. | caeba0bbb2be03f84eb48b699f0axxxx |
| Regions | array<object> | The list of available regions. | |
object | The details of an available region. | ||
RegionId | string | The region ID. | cn-hangzhou |
LocalName | string | The name of the region. | 华东1(杭州) |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"TotalCount": 16,
"MaxResults": 20,
"NextToken": "caeba0bbb2be03f84eb48b699f0axxxx",
"Regions": [
{
"RegionId": "cn-hangzhou",
"LocalName": "华东1(杭州)"
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.