Queries the machine groups to which a Logtail configuration is bound.
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:GetAppliedMachineGroups |
get |
*Project
|
|
None |
Request syntax
GET /configs/{configName}/machinegroups HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| configName |
string |
Yes |
The name of the Logtail configuration. |
logtail-config-sample |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information about the machine groups. |
||
| count |
integer |
The number of returned machine groups. |
2 |
| machinegroups |
array |
The names of the returned machine groups. |
[ "sample-group1","sample-group2" ] |
|
string |
The name of the machine group. |
sample-group1 |
Examples
Success response
JSON format
{
"count": 2,
"machinegroups": [
"sample-group1"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.