Management Plane API > Networking > Services > DHCP

Create a DHCP server

Create a logical DHCP server with v4 and/or v6 servers.

Request:

Method:
POST
URI Path(s):
/api/v1/dhcp/servers
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LogicalDhcpServer+

Example Request:

POST https://<nsx-mgr>/api/v1/dhcp/servers { "display_name" : "DHCP-server-2", "dhcp_profile_id" : "faf85fb5-9242-4d24-abca-0ca59b2b669b", "ipv4_dhcp_server" : { "dhcp_server_ip" : "192.168.110.50/24" } }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
LogicalDhcpServer+

Example Response:

{ "resource_type" : "LogicalDhcpServer", "id" : "b6a5bffa-f6a9-447c-936f-4633f9eb43a7", "display_name" : "DHCP-server-2", "dhcp_profile_id" : "faf85fb5-9242-4d24-abca-0ca59b2b669b", "ipv4_dhcp_server" : { "dhcp_server_ip" : "192.168.110.50/24" }, "_create_time" : 1478304339963, "_create_user" : "admin", "_last_modified_user" : "admin", "_system_owned" : false, "_last_modified_time" : 1478304339963, "_revision" : 0 }

Required Permissions:

crud

Feature:

dhcp_servers

Additional Errors: