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

Create or update a ALBdnspolicy

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

Example Request:

{ "_revision": 0, "name": "test-dns-policy", "rule": [ { "action": { "allow": { "allow": true, "reset_conn": true } }, "enable": true, "index": 1, "match": { "client_ip_address": { "client_ip": { "addrs": [ { "addr": "2.2.2.2", "type": "V4" } ], "match_criteria": "IS_NOT_IN" }, "use_edns_client_subnet_ip": true } }, "name": "Rule 1" } ] }

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: