list_devices
list_devices
Section titled “list_devices”List every UniFi device adopted by this controller.
Side effects: None (read-only).
Returns one record per device (gateway, AP, switch) with _id,
mac, type, model, name, ip, version,
state, uptime, num_sta, and satisfaction.
Example
Section titled “Example”list_devices(controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |