Mengkueri grup mesin yang terikat dengan konfigurasi Logtail.
Deskripsi operasi
Host terdiri dari nama proyek dan endpoint Simple Log Service. Anda harus menentukan proyek di 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 tentang grup mesin. |
||
| count |
integer |
Jumlah grup mesin yang dikembalikan. |
2 |
| machinegroups |
array |
Nama grup mesin yang dikembalikan. |
[ "sample-group1","sample-group2" ] |
|
string |
Nama grup 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.