Docs
Live demo
GET/api/v2/ssh-tunnels/{id}/detail
targets:readAPI token

Retrieve extended SSH tunnel details including SSH key info, associated targets, metrics, and recent events

Parameters

Path1 required of 1
idstringpathrequired

SSH Tunnel ID (UUID)

Responses

200

OK

SSHTunnelDetailResponse · 23 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
ssh_key_namestring
ssh_key_fingerprintstring
associated_targetsarray of TargetSummaryResponse
3 fields
idstring
namestring
kindstring
8 fields
uptime_secondsinteger · int64
avg_latency_msinteger
min_latency_msinteger
max_latency_msinteger
bytes_sentinteger · int64
bytes_receivedinteger · int64
total_connectionsinteger
total_failuresinteger
recent_eventsarray of TunnelEventResponse
8 fields
idstring
event_typestring
levelstring
messagestring
latency_msinteger
bytes_sentinteger · int64
bytes_receivedinteger · int64
created_atstring

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

↑ ↓ to moveEnter to openEsc to close