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:
PUT
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:

{ "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, "name": "test-security_policy", "network_security_policy_index": 0, "oper_mode": "DETECTION" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ALBSecurityPolicy+

Example Response:

{ "_create_time": 1598510344333, "_create_user": "admin", "_last_modified_time": 1598510344340, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "display_name": "test-security_policy-1", "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, "id": "test-security_policy-1", "marked_for_delete": false, "name": "test-security_policy-1", "network_security_policy_index": 0, "oper_mode": "DETECTION", "overridden": false, "parent_path": "/infra", "path": "/infra/alb-security-policies/test-security_policy-1", "relative_path": "test-security_policy-1", "resource_type": "ALBSecurityPolicy", "unique_id": "2ecd58e5-5632-4a56-8b9f-993837258ace" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: