Updates the cached pages that are protected by a specific website tamper-proofing rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | ModifyProtectionRuleCacheStatus | The operation that you want to perform. Set the value to ModifyProtectionRuleCacheStatus. |
DefenseType | String | Yes | tamperproof | The protection module. Set the value to tamperproof. |
Domain | String | Yes | www.example.com | The domain name that is added to WAF. |
InstanceId | String | Yes | waf_elasticity-cn-0xldbqt**** | The ID of the WAF instance. Note You can query the ID by calling DescribeInstanceInfo. |
RuleId | Long | Yes | 42755 | The ID of the rule. Note You can query the ID of all protection rules by calling DescribeProtectionModuleRules. |
RegionId | String | No | ap-southeast-1 | The region ID of the WAF instance. Valid values:
|
ResourceGroupId | String | No | rg-atstuj3rtop**** | The resource group ID to which the WAF instance belongs in the Resource Management. Defaults to empty, indicating it is part of the default resource group. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | D7861F61-5B61-46CE-A47C-6B19160D5EB0 | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyProtectionRuleCacheStatus
&DefenseType=tamperproof
&Domain=www.example.com
&InstanceId=waf_elasticity-cn-0xldbqt****
&RuleId=42755
&RegionId=ap-southeast-1
&ResourceGroupId=rg-atstuj3rtop****
&<Common request parameters>
Sample success responses
XML
format
<ModifyProtectionRuleCacheStatusResponse>
<RequestId>D7861F61-5B61-46CE-A47C-6B19160D5EB0</RequestId>
</ModifyProtectionRuleCacheStatusResponse>
JSON
format
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19160D5EB0"
}
Error codes
For a list of error codes, visit the API Error Center.