VPS: Public Keys
Attach public key
Attach existing public keys from your account to a specified virtual machine.
Multiple keys can be attached to a single virtual machine.
Use this endpoint to enable SSH key authentication for VPS instances.
post/api/vps/v1/public-keys/attach/{virtualMachineId}
Path parameters
virtualMachineIdinteger required
Example:1268054
Virtual Machine ID
Request body
Example request
{
"ids": [
18232,
10230230
]
}Response
Success response
Example response
{
"id": 8123712,
"name": "action_name",
"state": "success",
"created_at": "2025-02-27T11:54:00Z",
"updated_at": "2025-02-27T11:58:00Z"
}