/config/net/nameserver

The name server (DNS) configuration.

Get /config/net/nameserver

SecurityApiKey
Request
query Parameters
max-depth
integer >= 1

Limit output depth of the response. See Max-Depth.

Example: max-depth=2
filter
string

Response filter string. See Filter-Spec.

Example: filter={foo,bar}
Responses
200

Normal response.

401

Unauthorized response.

get/config/net/nameserver
Request samples
Response samples
application/json
{
  • "result": {
    },
  • "error": "Error message (present if an error occurred)."
}

Replace /config/net/nameserver

SecurityApiKey
Request
Request Body schema: application/json
server
Array of strings (configNetNameserverServer)

The IP addresses to use as name servers. If multiple name servers are specified, they are queried in the order in which they appear here.

Responses
200

Normal response.

401

Unauthorized response.

put/config/net/nameserver
Request samples
application/json
{ }
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Update /config/net/nameserver

SecurityApiKey
Request
Request Body schema: application/json
server
Array of strings (configNetNameserverServer)

The IP addresses to use as name servers. If multiple name servers are specified, they are queried in the order in which they appear here.

Responses
200

Normal response.

401

Unauthorized response.

post/config/net/nameserver
Request samples
application/json
{ }
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Delete /config/net/nameserver

Reset to default. See the descriptions of the individual endpoints for their default values. Commonly, arrays and strings are cleared to empty, numbers are cleared to 0, and booleans are cleared to false.

SecurityApiKey
Responses
200

Normal response.

401

Unauthorized response.

delete/config/net/nameserver
Request samples
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}