DELETE/api/v2/ssh-tunnels/{id}
targets:manageAPI token
Delete an SSH tunnel by ID. The tunnel will be stopped if it is active. A tunnel that targets select in their connection settings is not deleted. The 409 response names those targets.
Refuses (409 ssh_tunnel.in_use) while any target uses the tunnel.
Parameters
Path1 required of 1
idstringpathrequired
SSH Tunnel ID (UUID)
Responses
204
No Content
409
Targets connect through the tunnel (code ssh_tunnel.in_use, the targets are listed in resources), or changes of a target that depends on the tunnel are paused by the operator (code target_mutation_barrier)
Common errors: 400 401 403 404 429 503 504. They mean the same for every operation, see Errors.