Management Plane API > Networking > Services > DHCP

Create a DHCP server profile

Create a DHCP server profile. If no edge member is specified, edge members
to run the dhcp servers will be auto-allocated from the edge cluster.

Request:

Method:
POST
URI Path(s):
/api/v1/dhcp/server-profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DhcpProfile+

Example Request:

POST https://<nsx-mgr>/api/v1/dhcp/server-profiles { "display_name" : "DHCP-server-profile-2", "edge_cluster_id" : "4a6a13e0-eb66-4c02-96c3-85c9a250a946", "enable_standby_relocation" : true }

Successful Response:

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

Example Response:

{ "resource_type" : "DhcpProfile", "id" : "ee5711ce-e4d5-4f88-8330-b79c01d3bf7c", "display_name" : "DHCP-server-profile-2", "edge_cluster_id" : "4a6a13e0-eb66-4c02-96c3-85c9a250a946", "enable_standby_relocation" : true, "_create_time" : 1478301260922, "_create_user" : "admin", "_last_modified_user" : "admin", "_system_owned" : false, "_last_modified_time" : 1478301260922, "_revision" : 0 }

Required Permissions:

crud

Feature:

dhcp_server_profiles

Additional Errors: