Management Plane API > Networking > Services > DHCP

Update a DHCP server's static binding

Update a specific static binding of a given local DHCP server.

Request:

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

Example Request:

PUT /api/v1/dhcp/servers/d7f425da-25d2-4e5e-ae9e-ea112375971d/static-bindings/6f866db1-1ac9-44b5-9ba0-eb87b5bd0ef8 { "gateway_ip" : "192.168.150.1", "mac_address" : "12:34:56:78:9a:bc", "ip_address" : "192.168.150.202", "host_name" : "machine-1", "_revision" : 0 }

Successful Response:

Response Code:
200 OK
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.202", "host_name" : "machine-1", "_last_modified_user" : "admin", "_last_modified_time" : 1478310104268, "_revision" : 1 }

Required Permissions:

crud

Feature:

dhcp_servers

Additional Errors: