Mengubah konfigurasi aturan proteksi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyDefenseRule |
update |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans dari instans WAF. Catatan
Anda dapat memanggil operasi DescribeInstance untuk mengkueri ID instans dari instans WAF. |
waf_cdnsdf3**** |
| TemplateId |
integer |
No |
ID templat aturan proteksi. Catatan
Parameter ini diperlukan hanya jika DefenseType diatur ke template. |
5325 |
| DefenseScene |
string |
No |
Skenario proteksi yang akan diubah. Untuk informasi lebih lanjut, lihat parameter DefenseScene di CreateDefenseRule. |
waf_group |
| Rules |
string |
Yes |
Detail aturan proteksi. Nilainya adalah string yang dihasilkan dari serangkaian parameter dalam format JSON. Saat mengonfigurasi parameter ini, tentukan ID aturan dan konfigurasi aturan proteksi yang akan diubah. Parameter berikut disertakan:
|
[ { "id": 2344, "policyId": 1012, "action": "block" } ] |
| DefenseType |
string |
No |
Tipe aturan proteksi. Valid values:
|
template |
| RegionId |
string |
No |
Wilayah tempat instans WAF diterapkan. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfm***q |
| Resource |
string |
No |
Sumber daya yang terkait dengan aturan yang akan diubah. Catatan
Parameter ini diperlukan hanya jika DefenseType diatur ke resource. |
rencs***-waf |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
1EEA9C98-F166-54FE-ADE3-08D8****BDFA |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1EEA9C98-F166-54FE-ADE3-08D8****BDFA"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Defense.Control.DefenseWhitelistBypassRuleNotExist | The whitelist protection rule does not exist. | Aturan perlindungan yang masuk daftar putih dalam daftar putih tidak ada. ID Aturan: %s. |
| 400 | Defense.Control.DefenseWhitelistConfigInvalid | The whitelist rule is misconfigured. | Konfigurasi aturan daftar putih tidak valid: %s. |
| 400 | Defense.Control.DefenseBookTypeInvalid | The address book type is illegal. | Tipe buku alamat tidak valid. |
| 400 | Defense.Control.DefenseThreatIntelligenceConfigInvalid | Threat Intelligence Rule configuration error. | Konfigurasi aturan intelijen ancaman tidak valid. %s. |
| 400 | Defense.Control.DefenseIpCountOversize | The number of IPs exceeds the limit. | Jumlah alamat IP melebihi batas. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.