Virtual Machines

Force an immediate power-off and restart of a virtual machine, without a graceful shutdown.

When to use

Use this only when a soft reboot (POST /api/v1/vms/{id}/reboot) does not work — for example, the VM is hung and not responding to OS-level signals.

Risks

  • Unsaved data may be lost. Filesystems and applications cannot flush state before power-off.
  • Filesystem corruption is possible. Hard power-off skips clean unmount.

Prefer the standard reboot whenever the VM is responsive.

post/api/v1/vms/{id}/reboot-hard

Request

  • Base URL
    https://api.rafftechnologies.com
  • URL
    https://api.rafftechnologies.com/api/v1/vms/{id}/reboot-hard
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

VM ID (UUID)

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Response

Hard reboot initiated

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Operation completed successfully"
}

Changes