Policy > Networking > IP Management > DNS > DNS Forwarder > DNS Zones

Create or update the DNS Forwarder Zone

Create or update the DNS Forwarder Zone

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/dns-forwarder-zones/conditional-1 { "display_name" : "Conditional 1", "dns_domain_names" : [ "foo.com" ], "upstream_servers" : [ "1.1.1.1", "2.2.2.2" ], "_revision" : 0 }

Successful Response:

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

Example Response:

{ "resource_type" : "PolicyDnsForwarderZone", "id" : "conditional-1", "display_name" : "$1", "path" : "/infra/dns-forwarder-zones/conditional-1", "parent_path" : "/infra/dns-forwarder-zones/conditional-1", "relative_path" : "conditional-1", "dns_domain_names" : [ "foo.com" ], "upstream_servers" : [ "1.1.1.1", "2.2.2.2" ], "_create_user" : "a;a", "_create_time" : 1517400132921, "_last_modified_user" : "a;a", "_last_modified_time" : 1517400132921, "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_revision" : 1 }

Required Permissions:

crud

Feature:

policy_dns

Additional Errors: