Querying Regions Visible to a User
Function
This API is used to query regions visible to a user
URI
GET /v1/resource-manager/domains/{domain_id}/regions
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies the account ID. Maximum length: 36 |
Request Parameters
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| value | Array of Region objects | Specifies the region list. |
| Parameter | Type | Description |
|---|---|---|
| region_id | String | Specifies the region ID. |
| display_name | String | Specifies the display name of the region. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Example Request
None
Example Response
Status code: 200
Operation succeeded.
[ {
"region_id" : "cn-north-1",
"display_name": "CN North-Beijng1",
}, {
"region_id" : "cn-east-3",
"display_name": "CN East-Shanghai1"
} ] Status Codes
| Status Code | Description |
|---|---|
| 200 | Operation succeeded. |
| 400 | Invalid parameter. |
| 403 | Authentication failed. |
| 404 | User not found. |
| 500 | Internal server error. |
Error Codes
See Error Codes.
Last Article: Region Management
Next Article: Compliance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.