Update Network Dns Settings

Update Network Dns Settings

Update the DNS settings.

Request
URI
PUT
https://{api_host}/appliance/settings/network/dns
COPY
Request Body

Updated the DNS settings.

DnsInfo of type(s) application/json
Optional
{
    "mode": "string",
    "hostname": "string",
    "servers": [
        "string"
    ]
}
string
mode
Required

mode

Possible values are : DHCP, STATIC,
string
hostname
Optional

hostname

array of string
servers
Optional

Servers to be used for STATIC mode. Value ignored when DHCP mode.

Authentication
This operation uses the following authentication methods.
Responses
204

The DNS settings are updated.

Operation doesn't return any data structure

400

Bad request - the server could not understand the request due to invalid syntax or invalid request body content

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

error_code

string
message
Optional

message

string As uuid As uuid
op_id
Optional

op_id


401

Unauthorized - the client must authenticate itself to get the requested response

Operation doesn't return any data structure

403

Forbidden - not sufficient access rights to fulfill the request

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

error_code

string
message
Optional

message

string As uuid As uuid
op_id
Optional

op_id


500

Internal server error - unexpected condition prevents fulfilling the request

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

error_code

string
message
Optional

message

string As uuid As uuid
op_id
Optional

op_id