Register a repository
POST/v1/repositories
Registers backup storage: a chunk repository through the s3, rados or posix driver, or an rbd tier whose Ceph images new volumes and servers are cloned from. Access keys are sealed and never returned. Object lock is s3 only, and the chunk size is fixed for life. Warnings name what the service cannot check. An unlistable repository at another site is refused with repository_unreadable.
Operator only: needs a system-scoped token.
Request
Responses
- 201
- 400
- 401
- 403
- 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 grant repository:register.
Conflict.
conflict: A repository with this name is already registered.
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 the kind or driver needs is missing or one it does not use is sent, object_lock is asked of other than s3, chunk_size is not a power of two from 64 KiB to 64 MiB, or a duration, id, retention contract or key pair is malformed.
repository_unreadable: The chunk repository is at another site, and listing it from here with the access keys given, or with none, failed. detail names the storage and the error, and nothing was saved. Send access keys that can list it, or environment_credentials.
Service Unavailable.
kms_unavailable: Access keys were sent, but no key manager is configured to seal them.
An error, as an RFC 7807 problem document.