Deletes a rule from the protection configuration module.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteProtectionModuleRule |
The operation that you want to perform. Set the value to DeleteProtectionModuleRule. |
DefenseType | String | Yes | ac_custom |
Specifies the protection module configuration. Valid values:
|
Domain | String | Yes | www.example.com |
The domain name that is added to WAF. |
InstanceId | String | Yes | waf-cn-mp9153**** |
The ID of the WAF instance. Note You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.
|
RuleId | Long | Yes | 42754 |
The ID of the rule. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1557B42F-B889-460A-B17F-1DE5C5AD7FF2 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteProtectionModuleRule
&Domain=www.aliyundoc.com
&DefenseType=ac_custom
&RuleId=42754
&InstanceId=waf-cn-mp9153****
&<Common request parameters>
Sample success responses
XML
format
<DeleteProtectionModuleRuleResponse>
<RequestId>1557B42F-B889-460A-B17F-1DE5C5AD7FF2</RequestId>
</DeleteProtectionModuleRuleResponse>
JSON
format
{
"RequestId":"1557B42F-B889-460A-B17F-1DE5C5AD7FF2"
}
Error codes
For a list of error codes, visit the API Error Center.