Docs
Live demo
POST/api/v2/targets/ssh/host-key

Connect to an SSH host and return the public key it presents, so a person can check the fingerprint and pin it before the host is saved. Nothing is stored and no login is attempted.

Request body application/json · SSHHostKeyRequest

Required1 of 2 fields
connection_refstringrequired

Connection of the host, ssh://user@host:port.

min length 10 · max length 512
Optional1 field
ssh_tunnel_idstring · uuid

Responses

200

OK

SSHHostKeyResponse · 2 fields
host_keystringrequired
fingerprintstringrequired
409

Conflict

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

↑ ↓ to moveEnter to openEsc to close