POST/api/v2/targets/ssh/host-key
targets:manageAPI token
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.
Optional1 field
ssh_tunnel_idstring · uuid
Responses
200
OK
SSHHostKeyResponse · 2 fields
409
Conflict
Common errors: 400 401 403 404 413 429 504. They mean the same for every operation, see Errors.