Policy > Networking > IP Management > DNS > DNS Forwarder > Tier-1 Gateways

Create or update the DNS Forwarder

Create or update the DNS Forwarder

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-1s/{tier-1-id}/dns-forwarder
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/dns-forwarder
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyDnsForwarder+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-1s/<tier-1-id>/dns-forwarder { "display_name" : "dns-forwarder", "listener_ip" : "5.5.5.5", "default_forwarder_zone_path" : "/infra/dns-forwarder-zones/default-1", "conditional_forwarder_zone_paths" : ["/infra/dns-forwarder-zones/conditional-1"], "_revision" : 0 }

Successful Response:

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

Example Response:

{ "resource_type" : "PolicyDnsForwarder", "id" : "dns-forwarder", "display_name" : "dns-forwarder", "path" : "/infra/tier-1s/net-1/dns-forwarder", "parent_path" : "/infra/tier-1s/net-1", "relative_path" : "dns-forwarder", "listener_ip" : "5.5.5.5", "conditional_forwarder_zone_paths" : [ "/infra/dns-forwarder-zones/conditional-1" ], "log_level" : "INFO", "enabled" : true, "default_forwarder_zone_path" : "/infra/dns-forwarder-zones/default-1", "_create_user" : "a;a", "_create_time" : 1517403652195, "_last_modified_user" : "a;a", "_last_modified_time" : 1517403652195, "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_revision" : 1 }

Required Permissions:

crud

Feature:

policy_dns

Additional Errors: