Restore backup
Start restoring a VM from a backup. The POST returns when the restore job
has started (empty body). If you send optional sequence_id in the JSON
body, watch progress on GET /v1/events/restore-backup/{sequence_id} until
100%. If you omit sequence_id, poll the restore_status endpoint instead.
Authorization
bearer_auth Authentication
Create an API token on Profile. Send it in the Authorization header:
Authorization: Bearer os1_...Do not use the Keycloak web-session JWT as an API token. Keep the secret secure and do not share it.
In: header
Path Parameters
A unique identifier for a backup.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Optional body for restore. Omit the body (or omit sequence_id) to start
restore without a progress stream. Progress is then available from the
restore_status endpoint.
Response Body
application/json
application/json
text/pain
application/json
application/json
curl -X POST "https://example.com/v1/backups/6ba7b810-9dad-11d1-80b4-00c04fd430c8/restore" \ -H "Content-Type: application/json" \ -d '{ "sequence_id": 123456 }'null{ "errors": [ { "message": "'vcpus' field must be an integer", "field": "resource_id" } ]}"Access denied"{ "errors": [ { "message": "User not initialized. Send POST /v1/init, then retry the request." } ]}{ "errors": [ { "message": "VM with ID 23 not found" } ]}