Policy > Networking > Network Services > Advanced Load Balancing > Alb L4 Policy Sets

Create or update a ALBl4policyset

If a ALBl4policyset with the alb-l4policyset-id is not already present,
create a new ALBl4policyset. If it already exists, update the
ALBl4policyset. 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-l4-policy-sets/<alb-l4policyset-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBL4PolicySet+

Example Request:

{ "is_internal_policy": true, "l4_connection_policy": { "rules": [ { "action": { "select_pool": { "action_type": "L4_RULE_ACTION_SELECT_POOL", "pool_path": "/infra/alb-pools/test-alb-pool-1" } }, "enable": true, "index": 0, "match": { "client_ip": { "addrs": [ { "addr": "1.2.3.4", "type": "V4" } ], "match_criteria": "IS_IN", "prefixes": [ { "ip_addr": { "addr": "2.3.4.5", "type": "V4" }, "mask": 0 } ], "ranges": [ { "begin": { "addr": "1.1.1.1", "type": "V4" }, "end": { "addr": "10.10.10.10", "type": "V4" } } ] }, "port": { "match_criteria": "IS_IN", "port_ranges": [ { "end": 1, "start": 10 } ], "ports": [ 1 ] }, "protocol": { "match_criteria": "IS_NOT_IN", "protocol": "PROTOCOL_TCP" } }, "name": "rule1" } ] }, "name": "test-l4policy" }

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: