Reset SSH keys for a specific virtual server

Reset the SSH keys for your virtual server (VM). After resetting, the server will automatically restart to apply the changes. The endpoint returns a requestID to track the status of this operation.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
keyIds array required

Responses

200
success boolean
timestamp string
requestId string
data object
500
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/vm/{vmid}/reset-ssh-keys
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/vm/12877/reset-ssh-keys" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keyIds": [
      "string"
    ]
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "message": "string",
    "keyCount": 0,
    "vmid": "string",
    "accountId": "string"
  }
}
Request Body
{
  "keyIds": [
    "string"
  ]
}