Get SSH private key (legacy)

Get the SSH private key for accessing a GPU VM.

Note: This endpoint only works for legacy GPU VMs that had a per-VM SSH key pair generated at creation time. VMs created with an sshKeyId use the SSH key library — use the key you provided when creating the VM to connect.

Path Parameters
  • id
    Type: stringFormat: uuid
    required

    The GPU VM ID

Responses
  • application/json
  • application/json
  • 403

    GPU feature not enabled for this entity

  • application/json
  • application/json
Request Example for get/resource/gpu/{id}/ssh-key
curl https://api.gpcn.com/v1/resource/gpu/123e4567-e89b-12d3-a456-426614174000/ssh-key \
  --header 'X-API-Key: YOUR_SECRET_TOKEN'
{
  "success": true,
  "message": "string",
  "data": {
    "privateKey": "string"
  },
  "meta": null
}