GET/api/v2/ssh-tunnels/{id}/status
targets:readAPI token
Retrieve the current runtime status of an SSH tunnel
Parameters
Path1 required of 1
idstringpathrequired
SSH Tunnel ID (UUID)
Responses
200
OK
TunnelStatusResponse · 7 fields
connected_sincestring
error_messagestring
last_connected_atstring
local_portinteger
Always 0. Principal no longer opens a local port for a tunnel. Kept for wire compatibility.
statusstring
disconnectedconnectingconnectedfailedtarget_idstring
tunnel_idstring
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.