Clean up a protection group's superseded recovery
POST/v1/protection-groups/:id/cleanup
Removes what a superseded recovery left here: the servers a recover built, their ports and floating addresses. Volumes are not deleted but released from block storage, as unmanaged_volume resources for an operator to remove. Needs the other region's recovery record at or above the epoch held here. Returns 202 with the run. Refused with no_newer_recovery_elsewhere.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 202
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 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 clean up this group.
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_standby_here: The workload runs here. The group's workload here is running.
split_brain_risk: The group is in split_brain_risk, which only a resync or an acknowledgement clears.
no_newer_recovery_elsewhere: The other region's record of recovering the group at the epoch held here or above has not been read here.
nothing_to_clean_up: The group holds no server a recover built 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.
Service Unavailable.
dr_not_enabled: Disaster recovery is not enabled here, or this cloud cannot delete servers or release volumes, which the detail names.
An error, as an RFC 7807 problem document.