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
target object required
Responses
- 202
- default
Success
- application/api.clumio.restored-protection-groups=v1+json
- Schema
- Example (from schema)
Schema
_embedded object
_links object
- 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[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /restores/protection-groups/:protection_group_id/s3-objects
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/:protection_group_id/s3-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-groups=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": [
{
"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"
}
],
"target": {
"bucket_id": "string",
"environment_id": "string",
"overwrite": false,
"prefix": "string",
"restore_original_storage_class": false,
"storage_class": "S3 Standard",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'