NSX-T Data Center REST API

Get DNS-resolved IP addresses for an FQDN on a Tier-0 gateway

Current resolved IPs and resolution status for the FQDN.
Query parameter fqdn is required. The FQDN must be present in at least one
gateway firewall rule scoped to the specified Tier-0; otherwise 400 is returned.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/firewall/dns-resolved-ips
Request Headers:
n/a
Query Parameters:
FqdnResolvedIpQueryParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/tier-0s/Tier0Gateway1/firewall/dns-resolved-ips?fqdn=google.com

Successful Response:

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

Example Response:

{ "fqdn": "google.com", "resolved_ip_addresses": [ "198.51.100.1", "198.51.100.2", "198.51.100.3", "198.51.100.4", "198.51.100.5", "198.51.100.6", "2001:db8::1" ], "resolution_status": "RESOLVED" }

Required Permissions:

read

Feature:

policy_edge_fw

Additional Errors: