Skip to main content
POST
This endpoint does not take an Idempotency-Key. Assigning a key that is already assigned leaves the assignment in place and queues delivery again. CLI equivalent: ornn ssh-keys assignments assign <reservation-id> --key <key-id>.

Authorizations

Authorization
string
header
required

Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.

Path Parameters

reservation_id
string<uuid>
required

A reservation your organization holds. Keys are delivered to its VM and Bare Metal machines.

Body

application/json
ssh_key_id
string<uuid>
required

An active organization SSH key.

Response

The key is assigned and delivery is queued for active machines. A request with a new public key also returns outcome.

id
string<uuid>
required
organization_id
string<uuid>
required

Your organization.

public_key
string
required

The OpenSSH public key as registered, including any comment.

fingerprint
string
required

SHA-256 fingerprint in OpenSSH format, such as SHA256:...

status
enum<string>
required
Available options:
active,
revoked
created_at
string<date-time>
required
tenant_id
string<uuid>
deprecated

Same value as organization_id. Use organization_id.

label
string | null

Your name for the key.

revoked_at
string<date-time> | null
outcome
enum<string>

Present when the request sent a new public key.

Available options:
created,
already_registered,
reactivated