[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
vrms-appliance-config-api

Update Network DNS Settings

Description

Update the DNS settings.

Request

Request

URL

URL


put
https://{api_host}//appliance/settings/network/dns
Copy

Request Body

Request Body

DnsInfo of mimetype application/json Optional

Updated the DNS settings.

{
	"mode": "DHCP"
}
string
mode Required

Possible values are: DHCPSTATIC


string
hostname Optional

array of string
servers Optional

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

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

204 No Content

The DNS settings are updated.

Errors

Errors

ResponseError
400

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


401

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


ResponseError
403

Forbidden - not sufficient access rights to fulfill the request


ResponseError
500

Internal server error - unexpected condition prevents fulfilling the request

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"hostname":"string","mode":"DHCP","servers":["string"]}' https://{api_host}/appliance/settings/network/dns


[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
vrms-appliance-config-api
Feedback

Was this page helpful?