Create a protection group's delegation
POST/v1/protection-groups/:id/delegation
Creates the delegation this region uses to act in the group's project for recover and failback runs, which other runs do not need. Only a project member can create it, with a password-issued token scoped to the project. System-scoped tokens and application credentials are refused. Creating it again replaces it. An operator may instead grant this service's user a role in the project.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 413
- 415
- 422
- 503
- 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.
restore_trust_refused: The token was issued from an application credential, or carries no token to delegate from.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token may not create delegations for groups in the group's project.
restore_trust_refused: The caller holds no role on the group's project to delegate.
Not Found.
not_found: No group with this id exists in the token's project.
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: expires_in is not a duration from 1h to 8784h.
Service Unavailable.
dr_not_enabled: Disaster recovery is not enabled here.
service_unavailable: This service cannot act through a delegation.
An error, as an RFC 7807 problem document.