Deletes a specified Web Application Firewall (WAF) rule, along with its associated configurations and conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:DeleteWafRule |
delete |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. You can obtain this ID by calling the ListSites operation. |
1 |
| SiteVersion |
integer |
No |
The version number of the site configuration. If configuration version management is enabled, specifies the site version to which the configuration applies. Default value: 0. |
0 |
| Id |
integer |
Yes |
The ID of the WAF rule. You can obtain this ID by calling the ListWafRules operation. |
20000001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
Examples
Success response
JSON format
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | Rule.NotExist | The specified rule does not exist. | The specified rule does not exist in the current context or system configuration. Please verify the existence of the rule identifier and ensure it has been correctly defined or implemented. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | SpecifiedVersionReadOnly | The specified version number is read-only and cannot be modified. | The specified version number is read-only and cannot be modified. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.