Policy > Networking > Network Services > Advanced Load Balancing > Alb Waf Crs

Create or update a ALBwafcrs

If a ALBwafcrs with the alb-wafcrs-id is not already present,
create a new ALBwafcrs. If it already exists, update the
ALBwafcrs. This is a full replace.
This API is only available when using VMware NSX-T.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/alb-waf-crs/<alb-wafcrs-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBWafCRS+

Example Request:

{ "description": "DEMO Core Ruleset.\n\nThis is for demonstration and documentation only.\n", "groups": [ { "enable": true, "index": 0, "name": "CRS_402_Additional_Rules", "rules": [ { "enable": true, "index": 0, "name": "Desync attack detected", "rule": "SecRule &REQUEST_HEADERS:Content-Length \"@gt 0\" \"id:4022010, phase:1, block, t:none, msg:'Desync attack detected', tag:'application-multi', tag:'language-multi', tag:'platform-multi', tag:'attack-protocol', ver:'AVI_CRS/2019_2', severity:'WARNING', chain\"\nSecRule &REQUEST_HEADERS:Transfer-Encoding \"@gt 0\" \"setvar:'tx.anomaly_score_pl1:+%{tx.warning_anomaly_score}', setvar:'tx.http_violation_score:+%{tx.warning_anomaly_score}'\"", "rule_id": "4022010" }, { "enable": true, "index": 1, "name": "Multiple Transfer Encoding Headers detected", "rule": "SecRule &REQUEST_HEADERS:Transfer-Encoding \"@gt 1\" \"id:4022020, phase:1, block, t:none, msg:'Multiple Transfer Encoding Headers detected', tag:'application-multi', tag:'language-multi', tag:'platform-multi', tag:'attack-protocol', ver:'AVI_CRS/2019_2', severity:'WARNING', setvar:'tx.anomaly_score_pl1:+%{tx.warning_anomaly_score}', setvar:'tx.http_violation_score:+%{tx.warning_anomaly_score}'\"", "rule_id": "4022020" }, { "enable": true, "index": 2, "name": "Failed to parse request body.", "rule": "SecRule REQBODY_ERROR \"!@eq 0\" \"id:4022030, phase:2, block, t:none, msg:'Failed to parse request body.', tag:'application-multi', tag:'language-multi', tag:'platform-multi', tag:'attack-protocol', ver:'AVI_CRS/2019_3', severity:'CRITICAL', setvar:'tx.anomaly_score_pl1:+%{tx.critical_anomaly_score}'\"", "rule_id": "4022030" }, { "enable": true, "index": 3, "name": "Multipart request body failed strict validation.", "rule": "SecRule MULTIPART_STRICT_ERROR \"!@eq 0\" \"id:4022031, phase:2, block, t:none, msg:'Multipart request body failed strict validation.', tag:'application-multi', tag:'language-multi', tag:'platform-multi', tag:'attack-protocol', ver:'AVI_CRS/2019_3', severity:'CRITICAL', setvar:'tx.anomaly_score_pl1:+%{tx.critical_anomaly_score}'\"", "rule_id": "4022031" } ] } ], "integrity": "856e86e938bf4fe684ac4cf891b41d32be7e257f8f31804be3d98956c1cbcaf7", "name": "DEMO-CRS-AVI-2020-1", "release_date": "2020-08-18", "version": "20170101" }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: