NSX-T Data Center REST API
Create or update a ALBDnsPolicy
If a ALBDnsPolicy with the alb-DnsPolicy-id is notalready 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:
{ "display_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+
  