appliance networking dns servers: get

Get DNS server configuration.

Request:

HTTP request

GET https://{server}/rest/appliance/networking/dns/servers
No request parameters

Response:

HTTP Status Code: 200

Representations:

{
    "value"{
        "mode""dhcp",
        "servers"[
            "string",
            "string"
        ]
    }
}
<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value>
    <servers-array>
      <array-item>string</array-item>
      <array-item>string</array-item>
    </servers-array>
    <mode>dhcp</mode>
  </value>
</ns0:Get-Result>

Response Type:

Name Type Description
bold = required
value DNS_server_config DNS server configuration.
value.mode string 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.

Describes DNS Server source (DHCP,static) Value is one of:
dhcp: DNS address is automatically assigned by a DHCP server.
is_static: DNS address is static.

value.servers string[] List of the currently used DNS servers.

Errors:

HTTP Status Code Type Description
500 error Generic error