Restore S3 objects in a protection group
Restores the specified list of S3 objects to the specified target destination.
Path Parameters
- protection_group_id string required
Performs the operation on the ProtectionGroup with the specified ID.
Query Parameters
- embed string
Embeds the details of each associated resource. Set the parameter to one of the following embeddable links to include additional details associated with the resource.
For more information about embedded links, refer to the Embedding Referenced Resources section of this guide.Embeddable Link Description read-task Embeds the associated task in the response. For example, ?embed=read-task
- application/json
Request Body required
source object[] required
Objects to restore. These objects must belong to a single bucket.
bucket string requiredBucket the object belongs to
etag string requiredEtag of the contents of the object.
last_backup_time stringLast time the object was backed up as an RFC3339 string.
last_modified_time stringLast modified time of the object as an RFC3339 string.
object_key string requiredObject key
protection_group_asset_id stringThe Clumio-assigned ID of a protection group S3 asset, which represents the bucket within the protection group to restore from.
region stringregion of the backup object
restore_cookie string requiredEncrypted metadata for the object to be restored
You can getrestore_cookie
via POST /restores/protection-groups/{protection_group_id}/previewssize_in_bytes int64 requiredSize in Bytes
storage_class string requiredPossible values: [
S3 Standard
,S3 Standard-IA
,S3 Intelligent-Tiering
,S3 One Zone-IA
]Storage class. Valid values are:
S3 Standard
,S3 Standard-IA
,S3 Intelligent-Tiering
, andS3 One Zone-IA
.version_id string requiredVersion ID
target object required
The destination where the protection group will be restored.
bucket_id string requiredThe Clumio-assigned ID of the bucket to which the backup must be restored. Use the GET /datasources/aws/s3-buckets endpoint to fetch valid values.
default_object_checksum_algorithm stringPossible values: [
CRC32
,CRC32C
,CRC64NVME
,SHA1
,SHA256
]Default value:
CRC64NVME
Default AWS checksum algorithm for restored object. Valid values are:
CRC32
,CRC32C
,CRC64NVME
,SHA1
, and `SHA256.
Note that this will be applied when backup didn't have checksum algorithm information.environment_id string requiredThe Clumio-assigned ID of the AWS environment to be used as the restore destination. Use the GET /datasources/aws/s3-buckets/{bucket_id} endpoint to fetch the environment ID for a bucket.
overwrite booleanDefault value:
false
If overwrite is set to true, we will overwrite an object if it exists. If it's set to false, then we will fail the restore if an object already exists.
prefix stringPrefix to restore the objects under. If more than one bucket is restored, the bucket name will be appended to the prefix.
restore_original_storage_class booleanDefault value:
false
Whether to restore objects with their original storage class or not.
If it istrue
,storage_class
must be empty. Otherwise,storage_class
must be given.storage_class stringPossible values: [
S3 Standard
,S3 Standard-IA
,S3 Intelligent-Tiering
,S3 One Zone-IA
]Storage class for restored objects. Valid values are:
S3 Standard
,S3 Standard-IA
,S3 Intelligent-Tiering
andS3 One Zone-IA
.
Note that this must be given unlessrestore_original_storage_class
istrue
.tags object[]
The AWS tags to be applied to the restored objects. The restored objects will not have any tags applied if this is specified as
null
.key string requiredThe AWS-assigned tag key.
value stringThe AWS-assigned tag value.
- 202
- default
Success
- application/api.clumio.restored-protection-groups=v1+json
- Schema
- Example (from schema)
Schema
_embedded object
Embedded responses related to the resource.
read-task Embeds the associated task of a resource in the response if requested using the `embed` query parameter.Embeds the associated task of a resource in the response if requested using the
embed
query parameter._links object
URLs to pages related to the resource.
_self object
The HATEOAS link to this resource.
href stringThe URI for the referenced operation.
templated booleanDetermines whether the "href" link is a URI template. If set to
true
, the "href" link is a URI template.type stringThe HTTP method to be used with the "href" link for the referenced operation.
read-task object
A HATEOAS link to the task associated with this resource.
href stringThe URI for the referenced operation.
templated booleanDetermines whether the "href" link is a URI template. If set to
true
, the "href" link is a URI template.type stringThe HTTP method to be used with the "href" link for the referenced operation.
- task_id string
The Clumio-assigned ID of the task created by this restore request. The progress of the task can be monitored using the
GET /tasks/{task_id}
endpoint.
{
"_embedded": {},
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"read-task": {
"href": "string",
"templated": true,
"type": "string"
}
},
"task_id": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
A list of errors encountered during runtime.
error_code uint32error_message stringThe reason for the error.
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}