Management Plane API > Networking > Services > DHCP

Create a static binding for a DHCP server

Create a static binding for a logical DHCP server.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/dhcp/servers/d7f425da-25d2-4e5e-ae9e-ea112375971d/static-bindings { "gateway_ip" : "192.168.150.1", "mac_address" : "12:34:56:78:9a:bc", "ip_address" : "192.168.150.201", "host_name" : "machine-1" }

Successful Response:

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

Example Response:

{ "resource_type" : "DhcpStaticBinding", "id" : "6f866db1-1ac9-44b5-9ba0-eb87b5bd0ef8", "display_name" : "6f866db1-1ac9-44b5-9ba0-eb87b5bd0ef8", "lease_time" : 86400, "gateway_ip" : "192.168.150.1", "mac_address" : "12:34:56:78:9a:bc", "ip_address" : "192.168.150.201", "host_name" : "machine-1", "_create_time" : 1478309747583, "_create_user" : "admin", "_last_modified_user" : "admin", "_system_owned" : false, "_last_modified_time" : 1478309747583, "_revision" : 0 }

Required Permissions:

crud

Feature:

dhcp_servers

Additional Errors: