Preview a protection group restore
Preview a protection group restore.
Path Parameters
- protection_group_id string required
Performs the operation on the ProtectionGroup with the specified ID.
- application/json
Request Body required
- backup_id string
The Clumio-assigned ID of the protection group backup to be restored. Use the GET /backups/protection-groups endpoint to fetch valid values.
- is_sync_preview boolean
Whether to wait for the preview task.
object_filters object
- pitr_end_timestamp string
The end timestamp of the period within which objects are to be restored, in RFC-3339 format. Clumio searches for objects modified before the given time. If
pitr_end_timestamp
is empty, Clumio searches for objects modified up to the current time of the restore request.
Ifpitr_end_timestamp
is given withoutpitr_start_timestamp
, it is the same as point in time preview. - pitr_start_timestamp string
The start timestamp of the period within which objects are to be restored, in RFC-3339 format. Clumio searches for objects modified since the given time. If
pitr_start_timestamp
is empty, Clumio searches for objects from the beginning of the first backup. - protection_group_s3_asset_ids string[]
A list of Clumio-assigned IDs of protection group S3 assets, representing the buckets within the protection group to restore from. Use the GET /datasources/protection-groups/s3-assets endpoint to fetch valid values.
- 200
- 202
- default
Success (Sync)
- application/api.clumio.restored-protection-groups=v1+json
- Schema
- Example (from schema)
Schema
_links object
objects object[]
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"objects": [
{
"bucket": "string",
"etag": "string",
"last_backup_time": "string",
"last_modified_time": "string",
"object_key": "string",
"protection_group_asset_id": "string",
"region": "string",
"restore_cookie": "string",
"size_in_bytes": 0,
"storage_class": "S3 Standard",
"version_id": "string"
}
]
}
Success (Async)
- application/api.clumio.restored-protection-groups=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.
Note that this field is given only for async request. - 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.
Note that this field is given only for async request.
{
"_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/protection-groups/:protection_group_id/previews
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/previews' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync_preview": true,
"object_filters": {
"etag": "string",
"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"
},
"pitr_end_timestamp": "string",
"pitr_start_timestamp": "string",
"protection_group_s3_asset_ids": [
"string"
]
}'