You can call this operation to update cached pages protected by a specific tamper protection rule.

Note Currently, WAF instances deployed in regions outside mainland China do not support tamper protection.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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

Specifies the protection module. Set the value to tamperproof.

Domain String Yes

The domain that has been added to WAF.

InstanceId String Yes waf_elasticity-cn-0xldbqtm005

The ID of the WAF instance.

Note You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.
RuleId Long Yes 42755

The ID of the protection rule.

Note You can call the DescribeProtectionModuleRules operation to query the ID of a protection rule.

Response parameters

Parameter Type Example Description
RequestId String D7861F61-5B61-46CE-A47C-6B19160D5EB0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=ModifyProtectionRuleCacheStatus
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.