Menerapkan konfigurasi Logtail ke kelompok mesin.
Deskripsi operasi
-
The Host consists of the project name and the Simple Log Service endpoint. You must specify the project in the Host.
-
Create an AccessKey pair. For more information, see AccessKey pair.
An AccessKey pair for an Alibaba Cloud account provides full access to all API operations. This poses a security risk. For security reasons, we recommend that you create and use a RAM user for API access or routine O&M. The RAM user must have the permissions to manage Simple Log Service resources. For more information, see Create and authorize a RAM user. -
Identify the name and region of the project. For more information, see Manage projects.
-
Create a Logtail configuration and obtain its name. For more information, see CreateConfig.
-
Create a machine group and obtain its name. For more information, see CreateMachineGroup.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ApplyConfigToGroup |
update |
*Project
*Project
|
|
None |
Sintaks permintaan
PUT /machinegroups/{machineGroup}/configs/{configName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| machineGroup |
string |
Yes |
Nama kelompok mesin. |
sample-group |
| 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 |
Tidak ada yang didefinisikan.
Contoh
Respons sukses
JSONformat
{}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.