Delete A Dhcp Lease
Delete a single DHCP lease entry specified by ip and mac.
The DHCP server matches the DHCP lease with the given ip address and the mac address. The matched lease entry will be deleted. If no lease matches, the request is ignored.
The DHCP lease to be deleted will be removed by the system from both active and standby node. The system will report error if the DHCP lease could not be removed from both nodes. If the DHCP lease could not be removed on either node, please check the DHCP server status. Once the DHCP server status is UP, please invoke the deletion API again to ensure the lease gets deleted from both nodes.
Please use Policy API: POST /policy/api/v1/infra/segments/{segment-id}?action=delete_dhcp_leases POST /policy/api/v1/infra/tier-1s/{tier1-id}/segments/{segment-id}?action=delete_dhcp_leases
server-id
IPv4 or IPv6 address
MAC Address
OK
Bad Request
{
"details": "string",
"error_code": 0,
"error_data": {},
"error_message": "string",
"module_name": "string",
"related_errors": [
{
"details": "string",
"error_code": 0,
"error_data": {},
"error_message": "string",
"module_name": "string"
}
]
}
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/v1/dhcp/servers/{server-id}/leases?ip=value&mac=v