Retrieves all regions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pts:GetAllRegions |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| AllRegions |
object |
A list of region information. |
|
|
string |
Region information. |
{ "cn-shenzhen": "华南1(深圳)", "cn-qingdao": "华北1(青岛)", "cn-beijing": "华北2(北京)", "cn-shanghai": "华东2(上海)", "cn-hongkong": "中国香港", "ap-southeast-1": "新加坡", "cn-huhehaote": "华北5(呼和浩特)", "cn-zhangjiakou": "华北3(张家口)", "cn-hangzhou": "华东1(杭州)", "cn-chengdu": "西南1(成都)" } |
|
| Code |
string |
The status code. This parameter is not returned if the request is successful. |
200 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. This parameter is not returned if the request is successful. |
空 |
| RequestId |
string |
The request ID. |
73D16B8D-0FCD-5596-B7BE-A47042989318 |
| Success |
boolean |
Indicates whether the request was successful.
|
True |
Examples
Success response
JSON format
{
"AllRegions": {
"key": "{\n \"cn-shenzhen\": \"华南1(深圳)\",\n \"cn-qingdao\": \"华北1(青岛)\",\n \"cn-beijing\": \"华北2(北京)\",\n \"cn-shanghai\": \"华东2(上海)\",\n \"cn-hongkong\": \"中国香港\",\n \"ap-southeast-1\": \"新加坡\",\n \"cn-huhehaote\": \"华北5(呼和浩特)\",\n \"cn-zhangjiakou\": \"华北3(张家口)\",\n \"cn-hangzhou\": \"华东1(杭州)\",\n \"cn-chengdu\": \"西南1(成都)\"\n }"
},
"Code": "200",
"HttpStatusCode": 200,
"Message": "空",
"RequestId": "73D16B8D-0FCD-5596-B7BE-A47042989318",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Code | The specified parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.