Update Dhcp Config For Universal Router

Update Dhcp Config For Universal Router

Updates Dhcp configuration for a specific Universal Router

Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/universalRouters/{universalRouterId}/dhcp
COPY
Path Parameters
string
universalRouterId
Required

universalRouterId


Request Body
UniversalRouterDhcpConfig of type(s) application/json
Required
{
    "enabled": false,
    "servers": [
        {
            "egressRef": {
                "name": "string",
                "id": "string"
            },
            "serverAddress": "string"
        }
    ]
}
boolean
enabled
Optional

enabled

array of object
servers
Optional

List of Dhcp servers for universal router. Either egressRef or serverAddress is required to identify Dhcp server.

Authentication
This operation uses the following authentication methods.
Responses
202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure

400

Invalid configuration.

Returns Error of type(s) */*;version=39.1
"Error Object"
string
minorErrorCode
Required

minorErrorCode

string
message
Required

message

string
stackTrace
Optional

stackTrace


404

The specified resource was not found

Returns Error of type(s) */*;version=39.1
"Error Object"
string
minorErrorCode
Required

minorErrorCode

string
message
Required

message

string
stackTrace
Optional

stackTrace


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/1.0.0/universalRouters/{universalRouterId}/dhcp