Restore an S3 bucket whose Clumio Backtrack is enabled
Restores the specified S3 bucket to the specified target destination using Clumio Backtrack.
- application/json
Request Body required
source object required
The parameters for initiating an S3 bucket restore.
bucket_id string requiredThe Clumio-assigned ID of the bucket to be restored. Use the GET /datasources/aws/s3-buckets endpoint to fetch valid values.
object_filters object
Search for or restore only objects that pass the source object filter.
etag stringFilter for objects with this etag.
is_latest_version_only boolean requiredIf set to true, filter for latest versions only. Otherwise, all versions will be returned.
max_object_size_bytes int64Filter for objects with at most this size in bytes.
min_object_size_bytes int64Filter for objects with at least this size in bytes.
object_key_contains stringFilter for objects whose key contains this string.
object_key_matches stringFilter for objects whose key matches this string.
object_key_prefix stringFilter for objects that start with this key prefix.
object_key_suffix stringFilter for objects that end with this key suffix.
storage_classes string[]Storage class to include in the restore. If not specified, then all objects across all storage classes will be restored. Valid values are:
S3 Standard
,S3 Standard-IA
,S3 Intelligent-Tiering
andS3 One Zone-IA
.version_id stringFilter for objects with this version ID.
point_in_time_recovery object
This field is required when the request type is 'Rollback'. The parameters for initiating a point in time restore.
restore_end_timestamp stringThe end timestamp to be restored in RFC-3339 format. Clumio restores objects modified before the given timestamp.
undo_delete_marker_options object
This field is required when the request type is 'Undo delete marker'.
start_timestamp stringThe start timestamp for undo delete marker in RFC-3339 format. Clumio undoes the delete markers created after the given timestamp.
target object required
The destination where the S3 bucket will be restored.
bucket_name string requiredThe name of the destination bucket.
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.
prefix stringPrefix to restore the objects under.
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
.
If not given or empty, objects are restored with their original storage classes.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.
- type string
Possible values: [
Rollback
,Undo delete marker
]Type to be used during restore. If not specified, the default value is "Rollback". "Rollback" and "Undo delete marker" values will be deprecated. Use "rollback" and "undo_delete_marker" respectively. The default value will be changed when old values are deprecated.
- 202
- default
Success
- application/api.clumio.restored-aws-s3-buckets=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"
}
]
}