/config/net/nameserver/server/{idx}

The IPv4 or IPv6 address a DNS server.

Get /config/net/nameserver/server/{idx}

SecurityApiKey
Request
path Parameters
idx
required
integer >= 0

The index of a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

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

Replace /config/net/nameserver/server/{idx}

SecurityApiKey
Request
path Parameters
idx
required
integer >= 0

The index of a DNS server.

Request Body schema: application/json
string (configNetNameserverServerItem)

The IPv4 or IPv6 address a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

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

Update /config/net/nameserver/server/{idx}

SecurityApiKey
Request
path Parameters
idx
required
integer >= 0

The index of a DNS server.

Request Body schema: application/json
string (configNetNameserverServerItem)

The IPv4 or IPv6 address a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

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

Delete /config/net/nameserver/server/{idx}

Remove this name server.

SecurityApiKey
Request
path Parameters
idx
required
integer >= 0

The index of a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

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