Lists all regions that contain managed instances.
Operation description
This operation retrieves the list of regions where the current user has instances managed by SysOM. If a user has ECS instances in a region but none of them are managed by SysOM, that region is not included in the response.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:ListRegions |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/am/instance/list_regions HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The error code. |
Success |
| message |
string |
The error code description. This value is empty if no error occurs. |
SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom |
| data |
array |
The list of regions. |
["cn-hangzhou", "cn-shengzhen"] |
|
string |
The region. |
cn-hangzhou |
|
| RequestId |
string |
The request ID, which can be used for end-to-end diagnostics. |
B149FD9C-ED5C-5765-B3AD-05AA4A4D64D7 |
Examples
Success response
JSON format
{
"code": "Success",
"message": "SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom",
"data": [
"cn-hangzhou"
],
"RequestId": "B149FD9C-ED5C-5765-B3AD-05AA4A4D64D7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.