Lists the machines that are connected to Simple Log Service in a specified machine group.
Operation description
The Host consists of a project name and a Simple Log Service endpoint. You must specify the project in the Host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListMachines |
get |
*Project
|
|
None |
Request syntax
GET /machinegroups/{machineGroup}/machines HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| machineGroup |
string |
Yes |
The machine group name. |
test-group |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The project name. |
ali-test-project |
| offset |
integer |
No |
The start row of the query. Default value: 0. |
0 |
| size |
integer |
No |
The number of entries per page in a paged query. Default value: 100. Maximum value: 500. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of machine information returned. |
||
| count |
integer |
The number of machines returned on the current page. |
3 |
| machines |
array |
The list of machine information returned. |
|
| machine |
The machine information. |
[{"ip": "10.***.***.***", "machine-uniqueid": "", "userdefined-id": "", "lastHeartbeatTime": 1447182247},{"ip": "10.***.***.***", "machine-uniqueid": "","userdefined-id": "","lastHeartbeatTime": 1447182246}] |
|
| total |
integer |
The total number of machines. |
8 |
Examples
Success response
JSON format
{
"count": 3,
"machines": [
{
"host-id": "test",
"ip": "192.168.xx.x",
"lastHeartbeatTime": 1447182247,
"machine-uniqueid": "3B70F4F1-80F7-46C4-A6C1-100****EE647",
"userdefined-id": "None"
}
],
"total": 8
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.