Skip to main content

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

Request Body required
  • object_filters object

    Search for or restore only objects that pass the source object filter.

  • etag string

    Filter for objects with this etag.

  • is_latest_version_only boolean required

    If set to true, filter for latest versions only. Otherwise, all versions will be returned.

  • max_object_size_bytes int64

    Filter for objects with at most this size in bytes.

  • min_object_size_bytes int64

    Filter for objects with at least this size in bytes.

  • object_key_contains string

    Filter for objects whose key contains this string.

  • object_key_matches string

    Filter for objects whose key matches this string.

  • object_key_prefix string

    Filter for objects that start with this key prefix.

  • object_key_suffix string

    Filter 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 and S3 One Zone-IA.

  • version_id string

    Filter 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 string

    The end timestamp to be restored in RFC-3339 format. Clumio restores objects modified before the given timestamp.

  • 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

    This field is required when the request type is 'Undo delete marker'.

  • start_timestamp string

    The start timestamp for undo delete marker in RFC-3339 format. Clumio undoes the delete markers created after the given timestamp.

Responses

Success


Schema
  • _links object

    URLs to pages related to the resource.

  • _self object

    The HATEOAS link to this resource.

  • href string

    The URI for the referenced operation.

  • templated boolean

    Determines whether the "href" link is a URI template. If set to true, the "href" link is a URI template.

  • type string

    The 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 string

    The URI for the referenced operation.

  • templated boolean

    Determines whether the "href" link is a URI template. If set to true, the "href" link is a URI template.

  • type string

    The HTTP method to be used with the "href" link for the referenced operation.

  • 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.

POST /restores/aws/s3-buckets/:bucket_id/previews    

Authorization

Request

Click Edit to configure Base URL
https://us-west-2.api.clumio.com
Bearer Token
bucket_id — path required
Body required
{
"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"
}
}'