Create a protection group
POST/v1/protection-groups
Groups servers that recover together under the policy whose recovery section is their promise. Each member has a boot order and an optional health check, and must be under a plan with that policy. A new group is primary and active. With recovery_of, an operator registers another region's group as standby, binding each member to target_project_id and following later document versions.
Any member of the project the token is scoped to.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 503
- default
Created
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's roles do not allow creating protection groups in its project, or the request names recovery_of or mapping_profile_id and the token is not a system-scoped admin token.
Not Found.
group_document_not_found: No document for recovery_of.group_uid has been read from recovery_of.repository_id.
Conflict.
key_manager_missing: The group's document is in an encrypted dedup domain of the repository, and this cloud runs without a key manager. detail names the domain and the cloud that wrote it.
domain_key_missing: The group's document is in a dedup domain of the repository that this cloud holds no key for. detail names the domain to import.
conflict: The project already has a group with this name. Or the group is already held here, or was created by this cloud. Or the target project exists here but is disabled, or does not exist.
binding_conflict: A member of the group being registered is bound to another project here, or to the target project without the standby a warm group needs.
tier_unavailable: recovery_of.repository_id names an RBD tier, which holds no group documents.
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 missing or not acceptable: name, policy_id, the members or their health checks, an accepted gap or mapping_profile_id, a recovery field without recovery_of, or with it, members sent, a bad target or origin_cloud, or standby not matching a warm group.
policy_has_no_recovery: The policy states no recovery section. A group under it would be promised nothing.
member_not_under_group_policy: A member is protected by no plan, or only by plans under other policies. fields names each such member as members.<instance_id>.
Service Unavailable.
dr_not_enabled: The request names recovery_of and disaster recovery is not enabled here.
An error, as an RFC 7807 problem document.