Restore a backup

Put a VM's disk back to one of its backups. The VM restarts.

POST /v1/tenants/{tenant}/vms/{name}/backups/{id}/restore

curl -X POST "https://api.shako.dev/v1/tenants/acme/vms/web1/backups/9f3c1a2e/restore" \
  -H "Authorization: Bearer $SHAKO_API_KEY"

200 (excerpt)

{
  "id": 31,
  "kind": "backup",
  "step": "queued",
  "started_at": 1793494800
}

Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.

Path parameters

tenantstringrequired
The tenant's name, from GET /v1/tenants.
namestringrequired
The VM's name.
idstringrequired
The backup's id, from GET .../backups.

Response

200 with the backup job object.

Behavior

With backups on, Shako backs up the current disk first (kind pre-restore), so that you can undo the restore. The answer is the job at its start.

The errors. All the endpoints of Backups.