Skip to content

list_dhcp_leases

List static DHCP reservations on the controller.

Side effects: None (read-only).

UniFi stores fixed leases on the user object with use_fixedip=true. This returns just those entries with _id, mac, name, hostname, fixed_ip, and network_id.

list_dhcp_leases(controller="default")
ParameterTypeRequiredDefaultDescription
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".