Queries a list of machines that are connected to Simple Log Service in a specified machine group.
Operation description
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in 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 name of the machine group. |
test-group |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
| offset |
integer |
No |
The line from which the query starts. Default value: 0. |
0 |
| size |
integer |
No |
The number of entries per page. Default value: 100. Maximum value: 500. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The machines that are returned. |
||
| count |
integer |
The number of machines that are returned on the current page. |
3 |
| total |
integer |
The total number of machines. |
8 |
| machines |
array |
The machines that are returned. |
|
| machine |
The information about the machine. |
[{"ip": "10.***.***.***", "machine-uniqueid": "", "userdefined-id": "", "lastHeartbeatTime": 1447182247},{"ip": "10.***.***.***", "machine-uniqueid": "","userdefined-id": "","lastHeartbeatTime": 1447182246}] |
Examples
Success response
JSON format
{
"count": 3,
"total": 8,
"machines": [
{
"ip": "192.168.xx.x",
"machine-uniqueid": "3B70F4F1-80F7-46C4-A6C1-100****EE647",
"lastHeartbeatTime": 1447182247,
"userdefined-id": "none",
"host-id": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.