POST/api/v2/ssh-keys
targets:manageAPI token
Generate a new ED25519 SSH key pair. The private key is returned only once at creation time and stored securely in OpenBao. Idempotency-Key is refused because the answer carries the private key.
Returns the ED25519 private key once and refuses Idempotency-Key.
Request body application/json · CreateSSHKeyRequest
SSH key creation request
Required1 of 1 fields
namestringrequired
Responses
201
Created
SSHKeyCreatedResponse · 8 fields
algorithmstring
created_atstring
fingerprintstring
idstring
namestring
private_keystring
public_keystring
tunnel_countinteger
Number of SSH tunnels that sign in with the key. Always 0 for a new key.
409
SSH key with this fingerprint already exists
Common errors: 400 401 403 413 429 503 504. They mean the same for every operation, see Errors.