list_port_forwards
list_port_forwards
Section titled “list_port_forwards”List every port-forward (DNAT) rule on the controller.
Side effects: None (read-only).
Returns one record per forward with _id, name, enabled,
proto, src, fwd, fwd_port, and dst_port.
Example
Section titled “Example”list_port_forwards(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". |