Compute

Attach an SSH key to a VM

Attach an existing key to a VM after creation — pushed to authorized_keys on running VMs via the guest agent (~10s). Never recreate a VM to add a key.

post/agent/compute/vms/{id}/ssh-keys/{keyId}

Request

  • Base URL: https://edge.network
  • URL: https://edge.network/agent/compute/vms/{id}/ssh-keys/{keyId}
  • Auth: HTTP bearer

Path parameters

idstring required

VM id.

keyIdstring required

SSH key id.

Headers

X-Dry-Run'true' | 'false'

Set to "true" to preview the operation (validation, cost, plan) without making changes.

Idempotency-Keystring

Unique key for safe retries. Repeating a request with the same key returns the original response instead of re-executing.

Response

Success.

tell_userstring required

Human-readable summary of what happened, for the agent to relay to its operator.

Changes

No recorded changes to this operation across all 1 revision of this API.