Memodifikasi konfigurasi aturan perlindungan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyDefenseRule |
update |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance Web Application Firewall (WAF). Catatan
Panggil operasi DescribeInstance untuk mengkueri ID instance WAF Anda. |
waf_cdnsdf3**** |
| TemplateId |
integer |
No |
ID template perlindungan. Catatan
Parameter ini diperlukan hanya jika DefenseType diatur ke template. |
5325 |
| DefenseScene |
string |
No |
Skenario perlindungan yang akan dimodifikasi. Untuk informasi lebih lanjut, lihat parameter DefenseScene di CreateDefenseRule. |
waf_group |
| Rules |
string |
Yes |
Detail aturan perlindungan, dalam format string JSON. Tentukan ID aturan dan konfigurasi aturan perlindungan yang akan dimodifikasi. Detailnya mencakup hal berikut:
|
[ { "id": 2344, "policyId": 1012, "action": "block" } ] |
| DefenseType |
string |
No |
Tipe aturan perlindungan. Nilai yang valid:
|
template |
| RegionId |
string |
No |
Wilayah instance WAF. Nilai yang valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-acfm***q |
| Resource |
string |
No |
Objek yang dilindungi yang aturannya ingin Anda modifikasi. Catatan
Parameter ini diperlukan hanya jika DefenseType diatur ke resource. |
rencs***-waf |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| 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. | |
| 400 | Defense.Control.DefenseWhitelistConfigInvalid | The whitelist rule is misconfigured. | |
| 400 | Defense.Control.DefenseBookTypeInvalid | The address book type is illegal. | |
| 400 | Defense.Control.DefenseThreatIntelligenceConfigInvalid | Threat Intelligence Rule configuration error. | |
| 400 | Defense.Control.DefenseIpCountOversize | The number of IPs exceeds the limit. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.