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.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /machinegroups/{machineGroup}/machines
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
machineGroup | string | Yes | The name of the machine group. | test-group |
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 parameters
Examples
Sample success responses
JSON
format
{
"count": 3,
"total": 8,
"machines": [
{
"ip": "192.168.x.x",
"machine-uniqueid": "3B70F4F1-80F7-46C4-A6C1-100D66C***47",
"lastHeartbeatTime": 1657509674,
"userdefined-id": "test"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.