Release a protection group
POST/v1/protection-groups/:id/release
Stops the group's workload here and records a release for the other region to recover from. Runs only where the workload is running. Pauses the members' plans, stops each server, takes a final backup, waits for it to reach every repository the other region reads, then records the release. Returns 202 with the run. Refused with workload_not_running_here, group_busy or recovery_region_not_ready.
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 release this group. override_recovery_readiness needs an operator token.
Not Found.
not_found: No group with this id exists in the token's project.
Conflict.
group_busy: A run is acting on the group.
workload_not_running_here: The workload does not run here. The group's workload here is standby or released.
split_brain_risk: The group is in split_brain_risk, which only a resync or an acknowledgement clears.
recovery_region_not_ready: The other region's newest readiness report is missing, older than this service accepts, for another epoch, or says it could not recover every member, which fields names.
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.
member_not_under_group_policy: A member's server is protected by no plan under the group's policy, and no final backup can be taken of it.
member_disk_needs_running_guest: A member has a disk that can only be read through its running server, and a release takes its final backup with the server off.
member_not_mirrored: For a hot group, a member has no mirrored image recorded, or one of its images is not mirror-enabled or not primary here, and cannot be demoted. fields names each.
mirror_unavailable: The group promises the hot tier and this region cannot reach its own mirrored images.
Service Unavailable.
dr_not_enabled: Disaster recovery is not enabled here, or this cloud cannot stop, lock or start servers, which the detail names.
An error, as an RFC 7807 problem document.