diff --git a/APIDOCS.md b/APIDOCS.md index b965d00d..15831735 100644 --- a/APIDOCS.md +++ b/APIDOCS.md @@ -2875,6 +2875,9 @@ RESPONSE: "leaseTimeHours": 0, "leaseTimeMinutes": 0, "offerDelayTime": 0, + "pingCheckEnabled": false, + "pingCheckTimeout": 1000, + "pingCheckRetries": 2, "domainName": "local", "dnsTtl": 900, "serverAddress": "192.168.1.1", @@ -2942,6 +2945,9 @@ WHERE: - `leaseTimeHours` (optional): The lease time in number of hours. - `leaseTimeMinutes` (optional): The lease time in number of minutes. - `offerDelayTime` (optional): The time duration in milli seconds that the DHCP server delays sending an DHCPOFFER message. +- `pingCheckEnabled` (optional): Set this option to `true` to allow the DHCP server to find out if an IP address is already in use to prevent IP address conflict when some of the devices on the network have manually configured IP addresses. +- `pingCheckTimeout` (optional): The timeout interval to wait for an ping reply. +- `pingCheckRetries` (optional): The maximum number of ping requests to try. - `domainName` (optional): The domain name to be used by this network. The DHCP server automatically adds forward and reverse DNS entries for each IP address allocations when domain name is configured. - `dnsTtl` (optional): The TTL value used for forward and reverse DNS records. - `serverAddress` (optional): The bootstrap TFTP server IP address to be used by the clients. If not specified, the DHCP server's IP address is used. @@ -3023,6 +3029,26 @@ RESPONSE: } ``` +### Remove DHCP Lease + +Removes a dynamic or reserved lease allocation. This API must be used carefully to make sure that there is no IP address conflict caused by removing a lease. + +URL: +`http://localhost:5380/api/removeDhcpLease?token=x&name=Default&hardwareAddress=00:00:00:00:00:00` + +WHERE: +- `token`: The session token generated by the `login` call. +- `name`: The name of the DHCP scope. +- `hardwareAddress`: The MAC address of the device bearing the dynamic/reserved lease. + +RESPONSE: +``` +{ + "response": {}, + "status": "ok" +} +``` + ### Convert To Reserved Lease Converts a dynamic lease to reserved lease.