Bind a resource from another cloud to a project
POST/v1/recovery-bindings
Declares that a resource another cloud backed up into a shared repository belongs to a project here. Its backups then appear in that project and can be restored there, and new ones are picked up as they arrive. Naming a standby pool also keeps a warm copy of it. A resource can be bound once. With dry_run=true, nothing is bound and the answer is what a recovery of the resource's imported backup would build here.
Operator only: needs a system-scoped token.
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 502
- 503
- default
OK.
With dry_run=true, how the resource's newest imported backup, or the one backup_id names, would be rebuilt here. Nothing was bound or created. A request body for it adds backup_id, mapping_profile, inline_mapping_profile or confirm_unresolved.
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 is not a system-scoped admin token.
Not Found.
not_found: repository_id names no registered repository. Or, on a dry run, backup_id is not one of the resource's imported backups, mapping_profile names no stored profile, or the repository holds no record of the backup.
Conflict.
tier_unavailable: The repository is an rbd tier, which holds no backup records.
conflict: Without dry_run, this resource from this cloud is already bound. Or target_project_id names a project that does not exist here or is disabled. Or, on a dry run, no backup of the resource has been imported yet.
domain_key_missing: On a dry run, the encryption key for the backup is not present here, or the one present did not write it.
mapping_unresolved: On a dry run with no inline profile, more than one cloud wrote backups to this repository under the backup's cloud 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: origin_cloud, source_resource_id or target_project_id is missing. repository_id is not a UUID. standby_prefix is given without standby_pool. standby_site_id is not a UUID. target_domain_id does not match the target project's domain, or is missing when the project cannot be looked up. Or both mapping_profile and inline_mapping_profile are given.
Bad Gateway.
service_unavailable: On a dry run, this cloud's flavors, networks or volume types could not be read. Or the repository could not be opened.
Service Unavailable.
kms_unavailable: On a dry run, the backup is encrypted and this service has no key manager to unwrap its key with.
service_unavailable: This service does not hold recovery bindings. Or, on a dry run, it has no OpenStack access to read this cloud's inventory with.
An error, as an RFC 7807 problem document.