PUT /wafpolicy/{uuid}/update-crs-rules

PUT /wafpolicy/{uuid}/update-crs-rules

/wafpolicy/{uuid}/update-crs-rules

Request
URI
PUT
https://api_host/api/wafpolicy/{uuid}/update-crs-rules
COPY
Path Parameters
string
uuid
Required

UUID of the object to fetch

Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-Avi-Version
Required

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.

string
X-CSRFToken
Optional

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.


Request Body

WafPolicyCRSUpdate

WafPolicyCRSUpdate of type(s) application/json
Required
{
    "commit": false,
    "waf_crs_ref": "string"
}
boolean
commit
Optional

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.

string
waf_crs_ref
Required

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.

Responses
200

OK

Returns string of type(s) application/json
Operation doesn't return any data structure

401

log in failed

Operation doesn't return any data structure