Retrieves the list of managed instances.
Operation description
This operation retrieves the list of instances that are already managed by SysOM. If an ECS instance exists but is not managed by SysOM, it does not appear in the list.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:ListInstances |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/am/instance/list_instances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| current |
integer |
No |
The current page number. This field is present when pagination is used. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Default value: 20. Valid values: 1 to 100. |
10 |
| instance |
string |
No |
The ECS instance ID used to filter results. |
i-8vbfd3g9vs32sfuvv38h |
| status |
string |
No |
Filters instances by status. |
Running |
| region |
string |
No |
Filters instances by region. |
cn-shenzhen |
| cluster_id |
string |
No |
The cluster ID. |
xxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
SysomOpenAPI.ServerError |
| data |
array<object> |
The returned result. |
|
|
object |
The returned result. |
||
| cluster_id |
string |
The cluster ID. |
c2218ca2b76ec45e7b7ee1693f6fcd374 |
| instance |
string |
The ECS instance ID. |
i-wz9d00ut2ska3mlyhn6j |
| kernel_version |
string |
The current kernel version of the instance. |
5.10.134-16.1.an8.x86_64 |
| meta |
any |
The instance metadata. |
{ "uname": "Linux", "oncpu": "off", "release": "5.10.134-16.3.al8.aarch64", "monitor": "on", "version_id": "3", "version": "3 (Soaring Falcon)", "podNs": [ ], "machine": "aarch64", "name": "Alibaba Cloud Linux", "sysak": "3.4.0-1", "id": "alinux", "region": "cn-hangzhou", "centos-release": "Alibaba Cloud Linux release 3 (Soaring Falcon)" } |
| os_arch |
string |
The architecture of the ECS instance. |
x86 |
| os_health_score |
string |
The health score of the instance. |
100 |
| os_name |
string |
The operating system name of the instance, obtained from /etc/os-release. |
Anolis OS |
| os_name_id |
string |
The operating system name ID of the instance, obtained from /etc/os-release. |
anolis |
| os_version |
string |
The operating system version of the instance, obtained from /etc/os-release. |
8.9 |
| os_version_id |
string |
The operating system version ID of the instance, obtained from /etc/os-release. |
rhel fedora centos |
| region |
string |
The region where the instance resides. |
cn-hangzhou |
| status |
string |
The status of the instance. |
Running |
| message |
string |
The error message.
|
Requests for llm service failed |
| request_id |
string |
The request ID. |
9515E5A0-8905-59B0-9BBF-5F0BE568C3A0 |
| total |
integer |
The total number of records. |
623 |
Examples
Success response
JSON format
{
"code": "SysomOpenAPI.ServerError\n",
"data": [
{
"cluster_id": "c2218ca2b76ec45e7b7ee1693f6fcd374",
"instance": "i-wz9d00ut2ska3mlyhn6j",
"kernel_version": "5.10.134-16.1.an8.x86_64",
"meta": "{\n \"uname\": \"Linux\",\n \"oncpu\": \"off\",\n \"release\": \"5.10.134-16.3.al8.aarch64\",\n \"monitor\": \"on\",\n \"version_id\": \"3\",\n \"version\": \"3 (Soaring Falcon)\",\n \"podNs\": [\n\n ],\n \"machine\": \"aarch64\",\n \"name\": \"Alibaba Cloud Linux\",\n \"sysak\": \"3.4.0-1\",\n \"id\": \"alinux\",\n \"region\": \"cn-hangzhou\",\n \"centos-release\": \"Alibaba Cloud Linux release 3 (Soaring Falcon)\"\n}",
"os_arch": "x86",
"os_health_score": "100",
"os_name": "Anolis OS",
"os_name_id": "anolis",
"os_version": "8.9",
"os_version_id": "rhel fedora centos",
"region": "cn-hangzhou",
"status": "Running"
}
],
"message": "Requests for llm service failed\n",
"request_id": "9515E5A0-8905-59B0-9BBF-5F0BE568C3A0",
"total": 623
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.