Queries the machine groups of a project.
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
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | aliyun-test-project |
offset | integer | No | The line from which the query starts. Default value: 0. | 1 |
size | integer | No | The number of entries per page. Maximum value: 500. | 10 |
groupName | string | No | The name of the machine group. This parameter is used to filter machine groups. Partial match is supported. | test-machine-group |
Response parameters
Examples
Sample success responses
JSON
format
{
"count": 2,
"total": 2,
"machinegroups": [
"test-group"
]
}
Error codes
For a list of error codes, visit the Service error codes.