Change a protection group
PATCH/v1/protection-groups/:id
Renames a group or changes its policy, members or network maps, checked as on create. Refused with group_busy while a run acts on the group, except a change of a recovery's test_every alone. Only an operator changes a recovery, whose members follow its home's document. A group created here also takes accept_gaps and, from an operator, mapping_profile_id for its failback.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- default
OK
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 change groups in the group's project, or the group is a recovery and the token is not a system-scoped admin token, or the request changes a group's mapping_profile_id and the token is not a system-scoped admin 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, with active_run_id set or a running operation's state, and the request changes something other than a recovery's test_every.
conflict: Another group in the project already has the new name.
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: an empty name, members breaking a creation rule or changed without a usable policy, a bad policy_id, a field the group's role refuses, a bad test_every or accepted gap, or an unknown mapping profile or test profile.
policy_has_no_recovery: The policy states no recovery section.
member_not_under_group_policy: A member is not protected by a plan under the group's policy, or under the new one.
An error, as an RFC 7807 problem document.