Docs
Live demo
GET/api/v2/ssh-tunnels
targets:readAPI token

Retrieve a paginated list of SSH tunnels for the current organization

Parameters

Query2 optional
limitintegerquery

Number of items per page

default 20
cursorstringquery

Pagination cursor

Responses

200

OK

ListSSHTunnelsResponse · 4 fields
has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of SSHTunnelResponserequired
18 fields
created_atstring
error_messagestring

Reason of the last failure of the tunnel in Principal's words. Never a driver or dial error

health_checked_atstring
health_error_messagestring

Reason of the last failed health check, or of the failed reconnects of a tunnel that stopped because nobody used it

health_statusstring
idstring
last_connected_atstring
local_portinteger

Always 0. Principal no longer opens a local port for a tunnel. Kept for wire compatibility.

deprecated
namestring
remote_hoststring
remote_portinteger
ssh_hoststring
ssh_key_idstring

SSH key the tunnel signs in with. Omitted when the tunnel has no key.

ssh_portinteger
ssh_userstring
statusstring
disconnectedconnectingconnectedfailed
target_idstring
updated_atstring
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close