Recover a protection group
POST/v1/protection-groups/:id/recover
Brings the group's workload up in this region, which holds its standby copy. planned needs the other region's recorded release. unplanned, operator only, needs confirm_primary_may_be_serving_writes. At the group's home it is a failback. Restores or clones each member, takes over the workload, boots tier by tier. Returns 202 with the run. Refused with workload_not_standby_here or release_not_observed.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 202
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 503
- default
OK.
With dry_run=true, the plan the run would follow. Nothing was started.
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.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token may not recover this group. An unplanned recover needs a system-scoped admin token.
Not Found.
not_found: No group with this id exists in the token's project.
group_document_not_found: The group's repository no longer shows the document its home writes.
Conflict.
group_busy: A run is acting on the group.
workload_not_standby_here: This region does not hold the group's standby copy. Its workload here is running or released.
split_brain_risk: The group is in split_brain_risk, which only a resync or an acknowledgement clears.
standby_advanced: A member's standby moved to a newer backup while the recover was being worked out. Asking again works from the newer one.
release_not_observed: A planned recover finds no release it can verify, and no wait_for_release was asked: nothing was released, the newest record is not a release from the group's other region, or a recovery was recorded above it. The detail says where to release.
release_epoch_mismatch: The other region released at an epoch below the one held here.
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: mode is missing or unknown, recovery_point or max_recovery_point_age is malformed or sent with a planned recover, or wait_for_release is sent with an unplanned one or is not a duration of at most 30 minutes. fields names each.
unplanned_failover_unconfirmed: An unplanned recover is sent without confirm_primary_may_be_serving_writes set to true.
group_has_no_policy: The group names no protection policy to say how it recovers.
policy_has_no_recovery: The group's policy states no recovery section.
member_not_mirrored: For a hot group, a member's disk is not a mirrored volume here.
image_not_found_by_global_id: For a hot group, no image here carries a member's disk's mirror global id.
mirror_unavailable: The group promises the hot tier and this region cannot reach its own mirrored images.
member_never_synced: No standby holds a member of a warm group yet, or a mirrored image of a hot group holds no complete mirror snapshot.
member_has_no_recoverable_state: No backup of a member has been imported here, or the group has no member.
domain_key_missing: A member's backups are encrypted under a dedup domain whose key this cloud lacks.
member_not_ready: A member's readiness reports something else that refuses a recovery, such as binding_missing, and fields gives it as <issue code>: <detail>. Or a member's backup cannot be read, or describes no server to build.
standby_has_no_applied_snapshot: A member's standby holds no snapshot taken when an update finished.
recovery_point_too_old: A member's recovery point is older than max_recovery_point_age, or its age is unknown.
partial_coverage_unaccepted: A member's backup does not hold every disk of the server, and the group's registration does not accept partial_coverage.
no_probe_origin: Members declare health checks, and this region has neither a probe image to run them from nor a route to the project's networks.
recovery_delegation_missing: Nothing can be built in the group's project: the group has no delegation or its delegation has expired, and the service holds no role there.
mapping_unresolved: A member's server cannot be rebuilt here as it stands: an element such as a flavor or network does not map, and the group's accept_gaps does not accept it. fields names each member's elements.
return_target_diverged: With dry_run=true, a failback finds an original server that changed after its backup, is running, or cannot be compared and is no longer locked. A started failback ends failed with it before writing. Fail back again with overwrite_diverged.
failback_binding_missing: With dry_run=true, a failback finds a member whose final backup from the recovery region has not been imported here. Confirm the failback bindings first. A started failback waits for it, and ends failed with this error_code if it does not arrive.
unplanned_needs_originals: An unplanned recover at the group's home finds a member whose original server no longer exists.
Service Unavailable.
dr_not_enabled: Disaster recovery is not enabled here, or this cloud lacks something the recover needs, which the detail names.
An error, as an RFC 7807 problem document.