Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
vm
/
{id}
/
authorized-ssh-keys
Update virtual machine authorized SSH keys
curl --request POST \
  --url https://rest.compute.cudo.org/v1/projects/{projectId}/vm/{id}/authorized-ssh-keys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customSshKeys": [
    "<string>"
  ],
  "sshKeySource": "SSH_KEY_SOURCE_UNKNOWN"
}'
{}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required
id
string
required

Body

application/json
customSshKeys
string[]
sshKeySource
enum<string>
default:SSH_KEY_SOURCE_UNKNOWN
Available options:
SSH_KEY_SOURCE_UNKNOWN,
SSH_KEY_SOURCE_PROJECT,
SSH_KEY_SOURCE_USER,
SSH_KEY_SOURCE_NONE

Response

A successful response.

The response is of type object.