Management Plane API > Networking > Services > DHCP

Update a DHCP server with v4 and/or v6 servers

Update a logical DHCP server with new configurations.

Request:

Method:
PUT
URI Path(s):
/api/v1/dhcp/servers/<server-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LogicalDhcpServer+

Example Request:

PUT https://<nsx-mgr>/api/v1/dhcp/servers/b6a5bffa-f6a9-447c-936f-4633f9eb43a7 { "display_name" : "DHCP-server-3", "dhcp_profile_id" : "faf85fb5-9242-4d24-abca-0ca59b2b669b", "ipv4_dhcp_server" : { "dhcp_server_ip" : "192.168.110.50/24" }, "_revision" : 0 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LogicalDhcpServer+

Example Response:

{ "resource_type" : "LogicalDhcpServer", "id" : "b6a5bffa-f6a9-447c-936f-4633f9eb43a7", "display_name" : "DHCP-server-3", "dhcp_profile_id" : "faf85fb5-9242-4d24-abca-0ca59b2b669b", "ipv4_dhcp_server" : { "dhcp_server_ip" : "192.168.110.50/24" }, "attached_logical_port_id" : "ecde011f-528f-4ccb-a147-dd45d74103b6", "_last_modified_user" : "admin", "_last_modified_time" : 1478304649896, "_revision" : 1 }

Required Permissions:

crud

Feature:

dhcp_servers

Additional Errors: