A HTTP GET to /api/edge/data.json?data=dhcp_leases
can be used to get a JSON formatted list of DHCP leases.
Name | Type | Values | Description |
---|---|---|---|
|
String |
A boolean encapsulated in a string (e.g. |
Whether the API request was successful. |
|
Object |
|
The output to the data request. |
Name | Type | Values | Description |
---|---|---|---|
|
Dictionary |
|
A dictionary that contains each of the DHCP servers and their leases. |
Name | Type | Values | Description |
---|---|---|---|
Key |
String |
The unique name of a particular DHCP server (e.g. |
A property that represents the unique DHCP server name. |
Value |
Object or empty string |
|
An object that represents a particular DHCP server’s leases. |
Name | Type | Values | Description |
---|---|---|---|
Key |
String |
The IP address of a specific lease (e.g. |
A property that represents a specific DHCP lease. |
Value |
Object or empty string |
|
An object that represents a particular DHCP server lease. |
Name | Type | Values | Description |
---|---|---|---|
|
String |
A date in |
The date of a specific lease expiry. |
|
String |
DHCP pool name (e.g. |
The pool this lease corresponds to (appears to be a repetition of the DHCP server name). |
|
String |
MAC Address (e.g. |
The MAC address of this particular DHCP server lease. |
|
String |
Client supplied hostname |
The client supplied hostname for a DHCP server lease. |
{"success": "1", "output": {"dhcp-server-leases": {"LAN2": "", "LAN1": {"192.168.0.180": {"expiration": "2020/06/08 13:07:17", "pool": "LAN1", "mac": "xx:xx:xx:xx:xx:xx", "client-hostname": "Versa"}, "192.168.0.165": {"expiration": "2020/06/08 08:42:42", "pool": "LAN1", "mac": "xx:xx:xx:xx:xx:xx", "client-hostname": ""}, "192.168.0.104": {"expiration": "2020/06/07 16:19:20", "pool": "LAN1", "mac": "xx:xx:xx:xx:xx:xx", "client-hostname": "andys-6s"}}}}}