Skip to content

get_traffic_route_details

Show one traffic route’s full record by _id.

Side effects: None (read-only). Call this before update_traffic_route or toggle_traffic_route to see the route’s current matching target, next hop, and kill-switch state.

Returns the route record, or an error envelope if no route matches.

get_traffic_route_details(route_id="65f...")
Parameter Type Required Default Description
route_id string yes The _id from list_traffic_routes.
controller string no “default” Name of the UniFi controller to target. Defaults to "default".