showSiteDeviceDhcpLeases
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/show_dhcp_leases
Shows DHCP leases. POST /api/v1/sites/:siteid/devices/:deviceid/showdhcpleases
The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session
is introduced for demux.
Parameters
Name | Type | Description |
---|---|---|
network | string | (Optional) DHCP network for the leases, returns full table if not specified |
subscribe to Device Command outputs
{
"subscribe": "/sites/:site_id/devices/:device_id/cmd"
}
Request Body
{"network"=>"guest"}
RESPONSES
status: OK
{"session":"session_id"}