unifi_console_switch_port_detail
Retrieve live per-port switch status including link, STP role/state, flaps, errors, PoE, and optional LLDP neighbors. Use it to inspect switch ports without pulling the full device record.
Instructions
Live per-port state for a switch: link, STP state/role, flaps, errors, PoE and optionally LLDP.
Trims the 1 MB+ device record to the useful port fields (any key starting stp_, poe_, lldp_ or containing error/drop/link_down is kept, so new firmware fields still appear). Read-only; secrets removed.
Returns JSON: {"ok", "data": {"name", "model", "version", "uplink", "stp": {...}, "ports": [...]}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |