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

Create or update a ALBnetworksecuritypolicy

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

Example Request:

{ "name": "test-network_security", "rules": [ { "action": "NETWORK_SECURITY_POLICY_ACTION_TYPE_ALLOW", "age": 0, "created_by": "string", "enable": true, "index": 0, "log": true, "match": { "client_ip": { "addrs": [ { "addr": "1.2.3.4", "type": "V4" } ], "match_criteria": "IS_IN", "prefixes": [ { "ip_addr": { "addr": "1.3.4.5", "type": "V4" }, "mask": 0 } ], "ranges": [ { "begin": { "addr": "1.1.1.1", "type": "V4" }, "end": { "addr": "10.10.10.10", "type": "V4" } } ] }, "vs_port": { "match_criteria": "IS_NOT_IN", "ports": [ 80 ] } }, "name": "rule1", "rl_param": { "burst_size": 0, "max_rate": 20 } } ] }

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: