Restore a backup
POST/v1/restores
Restores a backup as a new volume, server or bucket, or in_place over its original. A new volume or server on an instant tier here is cloned in seconds, as job instant_restore. A backup missing disks needs acknowledge_partial, and what mapping_profile cannot map needs confirm_unresolved. The caller needs a role, such as member, in the target project itself.
Any member of the project the token is scoped to.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 502
- 503
- default
Accepted
Bad Request.
invalid_request: The body is not a single JSON object, names a field this operation does not take, or gives a value of the wrong type.
restore_trust_refused: The token cannot grant the delegation the restore needs: it carries none, or it was issued from an application credential.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token may not restore in this project, or may not restore in place. Or it names another project in target_project_id without operator rights.
restore_trust_refused: The caller holds no role on the target project to delegate. Grant the account a role in that project and restore again.
Not Found.
not_found: The backup does not exist or is not visible to this token. Or mapping_profile names no saved profile for the backup's origin.
Conflict.
backup_not_restorable: The backup's state is not committed or verified, for example still being taken, broken or being erased.
partial_restore_unacknowledged: The backup does not contain every disk of its resource and acknowledge_partial is not true. exceptions and coverage list what is missing.
tier_unavailable: tier names a copy that cannot serve this request, and the detail says why. Or no copy can be read now, for example a backup held only on the instant tier for a request that tier cannot serve.
mapping_unresolved: mapping_profile leaves elements unresolved that confirm_unresolved does not name. Or more than one cloud wrote backups under the backup's origin name.
domain_key_missing: mapping_profile needs the backup's record, and this cloud holds no key that opens it.
Request Entity Too Large.
body_too_large: The body is larger than the service accepts.
Unsupported Media Type.
unsupported_media_type: The body is not sent as application/json.
Unprocessable Entity.
validation_failed: A field is not acceptable: mode is missing, unknown or does not suit the backup, backup_id is not a UUID, tier is unknown, a server field comes with a mode that does not build a server, or mode is bucket without an object gateway.
Bad Gateway.
restore_trust_refused: The identity service refused the delegation.
service_unavailable: mapping_profile was named and this cloud's inventory could not be read.
Service Unavailable.
kms_unavailable: The backup's record is encrypted and this site has no key manager configured.
An error, as an RFC 7807 problem document.