Queries a list of ECS instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadCluster |
get |
*Cluster
|
None | None |
Request syntax
GET /pop/v5/resource/cluster_member_list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. You can call the ListCluster operation to obtain the cluster ID. For more information, see ListCluster. |
52984524-6d48-4bbd-85f2-a34b0e5b**** |
| CurrentPage |
integer |
No |
The current page number for a paged query. Default Settings for paging: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. If no Settings are specified, all ECS instances in the cluster are displayed. If Settings are specified, the ECS instances are displayed with paging based on the specified page size. |
50 |
| EcsList |
string |
No |
The number of ECS instances in the list. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response. |
||
| Code |
integer |
The API status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The ID of the request. |
b197-40ab-9155-**** |
| ClusterMemberPage |
object |
The page of ECS instances in the cluster. |
|
| CurrentPage |
integer |
The current page number for a paged query. Default Settings for paging: 1. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalSize |
integer |
The total number of pages returned when all ECS instances are paginated based on the specified page size. |
5 |
| ClusterMemberList |
object |
||
| ClusterMember |
array<object> |
The list of ECS instances in the cluster. |
|
|
object |
The information about ECS instances in the cluster. |
||
| Status |
integer |
The state of the ECS instance. Valid values:
|
1 |
| UpdateTime |
integer |
The timestamp when the ECS instance was updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1573281041113 |
| EcuId |
string |
The unique ID of the elastic compute unit (ECU). You can run the |
70ed3f59-b476-49aa-be09-9e6c375d**** |
| EcsId |
string |
The ID of the ECS instance. |
i-2zej4i2jdf3ntwhj**** |
| CreateTime |
integer |
The timestamp when the ECS instance was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. |
1573281038175 |
| ClusterMemberId |
string |
The ID of the ECS instance in the cluster. |
adb03eeb-3adf-4d7e-afe1-03d1ad45**** |
| ClusterId |
string |
The ID of the cluster. |
52984524-6d48-4bbd-85f2-a34b0e5b**** |
| PrivateIp |
string |
The private IP address for the ECS instance. |
172.16.XXX.XXX |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "b197-40ab-9155-****",
"ClusterMemberPage": {
"CurrentPage": 1,
"PageSize": 10,
"TotalSize": 5,
"ClusterMemberList": {
"ClusterMember": [
{
"Status": 1,
"UpdateTime": 1573281041113,
"EcuId": "70ed3f59-b476-49aa-be09-9e6c375d****",
"EcsId": "i-2zej4i2jdf3ntwhj****",
"CreateTime": 1573281038175,
"ClusterMemberId": "adb03eeb-3adf-4d7e-afe1-03d1ad45****",
"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5b****",
"PrivateIp": "172.16.XXX.XXX"
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.