Management Plane API > Networking > Services > DHCP Relay

Create a DHCP Relay Service

Creates a dhcp relay service.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/dhcp/relays { "dhcp_relay_profile_id": "bbfa30e4-87b6-41b8-8da5-771055967da1" }

Successful Response:

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

Example Response:

{ "resource_type" : "DhcpRelayService", "_revision": 0, "id": "fac2f67e-a860-4a9f-842b-a3cb6e34bb73", "dhcp_relay_profile_id": "bbfa30e4-87b6-41b8-8da5-771055967da1", "_last_modified_user": "admin", "_last_modified_time": 1414704710165, "_create_time": 1414704710165, "_create_user": "admin" }

Required Permissions:

crud

Feature:

dhcp_relay_services

Additional Errors: