Policy > Networking > Network Services > Advanced Load Balancing > Alb Security Policies

Create or update a ALBsecuritypolicy

If a ALBsecuritypolicy with the alb-securitypolicy-id is not already present,
create a new ALBsecuritypolicy. If it already exists, update the
ALBsecuritypolicy. 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-security-policies/<alb-securitypolicy-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBSecurityPolicy+

Example Request:

{ "display_name": "test-security_policy", "dns_attacks": { "attacks": [ { "attack_vector": "DNS_NXDOMAIN", "enabled": true, "max_mitigation_age": 0, "mitigation_action": { "deny": true }, "threshold": 0 } ], "oper_mode": "DETECTION" }, "dns_policy_index": 0, "network_security_policy_index": 0, "oper_mode": "DETECTION" }

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: