Preview an S3 bucket restore
Previews the objects that will be restored by S3 bucket restore.
Path Parameters
- bucket_id string required
Preview bucket ID
- application/json
Request Body required
object_filters object
point_in_time_recovery object
- type string
Possible values: [
Rollback
,Undo delete marker
]Type to be used during preview. 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.
undo_delete_marker_options object
Responses
- 202
- default
Success
- application/api.clumio.restored-aws-s3-buckets=v1+json
- Schema
- Example (from schema)
Schema
_links object
- preview_id string
The identifier for the requested preview which is used to fetch results of the preview.
- task_id string
The Clumio-assigned ID of the task created by this preview request. The progress of the task can be monitored using the
GET /tasks/{task_id}
endpoint.
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"read-task": {
"href": "string",
"templated": true,
"type": "string"
}
},
"preview_id": "string",
"task_id": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /restores/aws/s3-buckets/:bucket_id/previews
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/s3-buckets/:bucket_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-aws-s3-buckets=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"object_filters": {
"etag": "string",
"is_latest_version_only": true,
"max_object_size_bytes": 0,
"min_object_size_bytes": 0,
"object_key_contains": "string",
"object_key_matches": "string",
"object_key_prefix": "string",
"object_key_suffix": "string",
"storage_classes": [
"string"
],
"version_id": "string"
},
"point_in_time_recovery": {
"restore_end_timestamp": "string"
},
"type": "Rollback",
"undo_delete_marker_options": {
"start_timestamp": "string"
}
}'