v1

latestOpenAPI 3.0.02026-07-13288558.3 KB

/sshkeys/add

Add a new SSH Key

post/sshkeys/add

Request body

namestring required

The name of the SSH Key.

public_keystring required

The public key.

Example request

{
  "name": "My ssh key",
  "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3 Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx NrRFi9wrf+M7Q== schacon@mylaptop.local"
}

Response

Returns a AddSshKeyResponse object

idstring required

The ID of the SSH Key.

Example response

{
  "id": "78a0dd5a-dbb1-4568-b55c-5e7e0a8b0c40"
}