[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
vrms-appliance-config-api
Update Network DNS Settings
DescriptionUpdate the DNS settings.
Request
URLURL
https://{api_host}//appliance/settings/network/dns
Request Body
Request Body
{
"mode": "DHCP"
}
string
mode
Required
Possible values are: DHCP , STATIC
string
hostname
Optional
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.
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
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