list_alarms
list_alarms
Section titled “list_alarms”List controller alarms, active or archived.
Side effects: None (read-only).
Returns the most recent limit alarm records.
Example
Section titled “Example”list_alarms(limit=20, archived=False)Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer | no | 50 | Max number of alarms to return (default 50, max 1000). |
archived | boolean | no | false | True lists dismissed/archived alarms; False (default) lists active alarms only. |
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |