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

{ "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_IN" }, "use_edns_client_subnet_ip": true } }, "name": "Rule 1" } ] }

Successful Response:

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

Example Response:

{ "_create_time": 1599203171602, "_create_user": "admin", "_last_modified_time": 1599203171608, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "display_name": "test-dns-policy", "id": "test-dns-policy", "marked_for_delete": false, "overridden": false, "parent_path": "/infra", "path": "/infra/alb-dnspolicys/test-dns-policy", "relative_path": "test-dns-policy", "resource_type": "ALBDnsPolicy", "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_IN" }, "use_edns_client_subnet_ip": true } }, "name": "Rule 1" } ], "unique_id": "4cd0277c-acc4-49a8-9454-58b98011374c" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: