Menanyakan kelompok mesin yang terikat pada konfigurasi Logtail.
Deskripsi operasi
Host terdiri atas nama proyek dan titik akhir Simple Log Service. Anda harus menentukan proyek dalam Host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:GetAppliedMachineGroups |
get |
*Project
|
|
None |
Sintaks permintaan
GET /configs/{configName}/machinegroups HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| configName |
string |
Yes |
Nama konfigurasi Logtail. |
logtail-config-sample |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama proyek. |
ali-test-project |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Informasi mengenai kelompok mesin. |
||
| count |
integer |
Jumlah kelompok mesin yang dikembalikan. |
2 |
| machinegroups |
array |
Nama kelompok mesin yang dikembalikan. |
[ "sample-group1","sample-group2" ] |
|
string |
Nama kelompok mesin. |
sample-group1 |
Contoh
Respons sukses
JSONformat
{
"count": 2,
"machinegroups": [
"sample-group1"
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.