list_events
list_events
Section titled “list_events”List recent controller events (connections, disconnections, etc.).
Side effects: None (read-only).
Returns the most recent limit event records, newest first.
Not available on every firmware: UniFi Network 10.5 and 10.6 expose no
event log on the local API-key surface (/stat/event answers 404),
so on those controllers this tool returns an error saying the feature
is unsupported rather than an empty list. It works on 10.4 and older.
Example
Section titled “Example”list_events(limit=100)Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer |
no | 50 | Max number of events to return (default 50, max 1000). |
controller |
string |
no | “default” | Name of the UniFi controller to target. Defaults to "default". |