PUT /wafpolicy/{uuid}/update-crs-rules
/wafpolicy/{uuid}/update-crs-rules
UUID of the object to fetch
Avi Tenant Header
Avi Tenant Header UUID
The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
WafPolicyCRSUpdate
Show optional properties
{
"waf_crs_ref": "string"
}
{
"commit": false,
"waf_crs_ref": "string"
}
Set this to true if you want to update the policy. The default value of false will only analyse what would be changed if this flag would be set to true. Field introduced in 22.1.1. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.
CRS object to which this policy should be updated to. To disable CRS for this policy, the special CRS object CRS-VERSION-NOT-APPLICABLE can be used. It is a reference to an object of type WafCRS. Field introduced in 22.1.1. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.
OK
log in failed
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"waf_crs_ref:"string"}' https://{api_host}/api/wafpolicy/{uuid}/update-crs-rules