This API has a deprecated equivalent from v7.0U1.
Get DNS Servers
Get DNS server configuration.
Request
URLURL
https://{api_host}/api/appliance/networking/dns/servers
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Response
Response
Response BodyResponse Body
200 OK returns
NetworkingDnsServersDNSServerConfig of type application/json
DNS server configuration.
{
"mode": "enum",
"servers": [
"string"
]
}
mode
Required
Define how to determine the DNS servers. Leave the servers argument empty if the mode argument is “DHCP”. Set the servers argument to a comma-separated list of DNS servers if the mode argument is “static”. The DNS server are assigned from the specified list.
Possible values are: dhcp , is_static
array of
string
servers
Required
List of the currently used DNS servers.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/appliance/networking/dns/servers
Errors
Availability
Added in 7.0U2