Unifi
Manage a Ubiquiti UniFi Dream Machine (UDM / UDM Pro / UDM SE) via the legacy Network API: firewall groups, firewall rules, clients, PoE device restarts, IDS/IPS event investigation, and networks. Complements @stack72/ubiquity (which focuses on traffic collection) by enabling configuration-as-data workflows: sync existing groups/rules into the swamp data model, reconcile group membership, create or delete firewall rules, toggle rule state, safely power-cycle a wired client's resolved switch port, and retrieve the best available raw record for a security event.
Add exact UniFi IDS/IPS event investigation across Network 10.x traffic flows and system logs plus the legacy IDS endpoint. Preserve matched raw records, paginate supported APIs, tolerate unsupported endpoints, and distinguish incomplete searches from definitive absence.
| Argument | Type | Description |
|---|---|---|
| activeOnly | boolean | If true, only fetch currently-connected clients (/stat/sta). |
| Argument | Type | Description |
|---|---|---|
| flowId | string | Exact UniFi event, flow, or initiator reference ID |
| sourceIp? | string | Optional source IP used to narrow the traffic-flow query |
| destinationIp? | string | Optional destination IP used to narrow the traffic-flow query |
Resources
Resources
| Argument | Type | Description |
|---|---|---|
| ruleset? | string | Filter by ruleset, e.g. LAN_IN, LAN_OUT, WAN_OUT, WAN_LOCAL |
| Argument | Type | Description |
|---|---|---|
| name | string | |
| ruleset | enum | |
| action | enum | |
| protocol | string | |
| enabled | boolean | |
| logging | boolean | |
| rule_index? | number | |
| src_firewallgroup_ids | array | |
| dst_firewallgroup_ids | array | |
| src_address | string | |
| dst_address | string | |
| src_networkconf_id | string | |
| dst_networkconf_id | string | |
| src_port | string | |
| dst_port | string | |
| state_new | boolean | |
| state_established | boolean | |
| state_invalid | boolean | |
| state_related | boolean |
| Argument | Type | Description |
|---|---|---|
| id | string |
Resources
Resources
Modified 1 models
Add TOTP authentication support for MFA-enabled UniFi accounts.
Rebuild against swamp CLI 20260716
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned