Mengubah status pengiriman log objek yang dilindungi di Web Application Firewall (WAF).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyResourceLogDeliveryStatus |
update |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Panggil operasi DescribeInstance untuk mengkueri ID instans WAF. |
waf_v2_public_cn-uqm35***** |
| DeliveryName |
string |
No |
Nama konfigurasi pengiriman log. Catatan
Parameter ini wajib diisi ketika Anda mengaktifkan pengiriman log dengan menetapkan Status ke true. |
export-kafka |
| Resource |
string |
Yes |
Objek yang dilindungi yang status pengiriman lognya ingin Anda ubah. |
test.waf.com-waf |
| Status |
boolean |
Yes |
Apakah akan mengaktifkan pengiriman log untuk objek yang dilindungi. Nilai valid:
|
true |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfm***q |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D7861F61-5B61-46CE-A47C-6B19****** |
| DeliveryName |
string |
The name of the log delivery configuration. |
test1 |
| Status |
boolean |
Indicates whether log delivery is enabled for the protected object. Valid values:
|
true |
| DeliveryType |
string |
The type of log delivery destination for the protected object. Valid values:
|
sls |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19******",
"DeliveryName": "test1",
"Status": true,
"DeliveryType": "sls"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.