Tunnels
The tunnels that are up right now, and one tunnel looked up by name.
postGet Tunnel
Looks a tunnel up by its name: the live row when it is up, and the team that owns the name either way. With a team, only that team is searched. Without one, every team the caller is a member of is searched, so a link that names only the tunnel (the one the CLI prints) can be resolved in one call. A name that is up in none of them is answered from the reserved names, when the credential may also read those (`burrow:names:read`): `tunnel` is then absent, and `team` and `protocol` are the reservation's. Fails with `not_found` when the name is neither up nor reserved in any team searched. An ephemeral slug that has gone down is therefore `not_found`: its history is in the traffic and connection logs, not here. **Required scopes:** `burrow:tunnels:read`
postList Tunnels
Lists the tunnels a team has up at this moment, with their counters as of the last heartbeat. A tunnel that has gone away is simply absent; there is no tombstone. Newest connection first, paged with an opaque cursor over (started_at, key). This is a snapshot of live state rather than a table: the page is cut from what Redis held when the request arrived, so a tunnel that connects or drops mid-page is not guaranteed to appear exactly once across the pages. Answers an empty list, rather than an error, on a deployment with no live-view Redis: tunnels work without it and the console says so. **Required scopes:** `burrow:tunnels:read`
List Requests POST
Searches a team's request history. Every clause in the filter ANDs with the others, and the team is always part of the query — it comes from the caller's session, never from the request. Bodies are returned only with `with_bodies`, which is the detail view; a list of a thousand rows does not want them. Paged with an opaque cursor over (time, id) descending. **Required scopes:** `burrow:traffic:read`
Get Tunnel POST
Looks a tunnel up by its name: the live row when it is up, and the team that owns the name either way. With a team, only that team is searched. Without one, every team the caller is a member of is searched, so a link that names only the tunnel (the one the CLI prints) can be resolved in one call. A name that is up in none of them is answered from the reserved names, when the credential may also read those (`burrow:names:read`): `tunnel` is then absent, and `team` and `protocol` are the reservation's. Fails with `not_found` when the name is neither up nor reserved in any team searched. An ephemeral slug that has gone down is therefore `not_found`: its history is in the traffic and connection logs, not here. **Required scopes:** `burrow:tunnels:read`