SSH Keys

Get Ssh Keys

get

Get all SSH keys for a project

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
projectstringRequiredExample: proj_abc123456
Responses
chevron-right
200

Successful Response

application/json
get
/v2/ssh-keys

Create Ssh Key

post

Create a new SSH key. If public_key is not provided, this endpoint will generate a new RSA key pair and return both the private and public keys.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
projectstringRequiredExample: proj_abc123456
namestringRequired
public_keystring · nullableOptional
requiredbooleanOptionalDefault: false
Responses
post
/v2/ssh-keys

Delete Ssh Key

delete

Delete an SSH key. Note that SSH keys used in active bids/reservations cannot be deleted.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ssh_key_fidstringRequiredExample: sshkey_abc123456
Responses
delete
/v2/ssh-keys/{ssh_key_fid}

No content

Update Ssh Key

patch

Update an SSH key to set it as required. Only admins can set a key as required.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ssh_key_fidstringRequiredExample: sshkey_abc123456
Body
requiredbooleanRequired
Responses
chevron-right
200

Successful Response

application/json
patch
/v2/ssh-keys/{ssh_key_fid}

Last updated