Management Plane API > Networking > Services > DHCP Relay Profiles

Create a DHCP Relay Profile

Creates a dhcp relay profile.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/dhcp/relay-profiles { "server_addresses" : [ "10.1.1.1", "10.2.2.2", "10.3.3.3", "10.4.4.4" ], "display_name" : "dhcp-relay-external-servers", }

Successful Response:

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

Example Response:

{ "resource_type": "DhcpRelayProfile", "_revision": 0, "id": "bbfa30e4-87b6-41b8-8da5-771055967da1", "display_name": "dhcp-relay-external-servers", "server_addresses": [ "10.1.1.1", "10.2.2.2", "10.3.3.3", "10.4.4.4" ], "_last_modified_user": "admin", "_last_modified_time": 1414623610509, "_create_time": 1414623610509, "_create_user": "admin" }

Required Permissions:

crud

Feature:

dhcp_relay_profile

Additional Errors: