Estimate cost of a S3 instant access endpoint
Estimates cost for creating and maintaining a S3 instant access endpoint with given parameters.
- application/json
Request Body required
- backup_id string
The Clumio-assigned ID of the protection group S3 asset backup or protection group backup to be restored. Use the endpoints GET /backups/protection-groups/s3-assets for protection group S3 asset backup, and GET /backups/protection-groups for protection group backups to fetch valid values.
Note that only one of eitherbackup_id
orpitr
must be provided. - is_sync boolean
Whether to wait for the operation to complete.
object_filters object
pitr object
- protection_group_s3_asset_id string required
Clumio-assigned ID of protection group S3 asset, representing the bucket 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-group-instant-access-endpoints=v1+json
- Schema
- Example (from schema)
Schema
_links object
- estimated_cost double
The estimated cost for instant access endpoint.
- total_object_count int64
The count of objects to be restored.
- total_object_size int64
The total size in bytes of objects to be restored.
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"estimated_cost": 0,
"total_object_count": 0,
"total_object_size": 0
}
Success (Async)
- application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json
- Schema
- Example (from schema)
Schema
_links object
- estimate_id string
The identifier for the requested estimate which is used to fetch results.
- 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"
}
},
"estimate_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/instant-access-endpoints/cost-estimates
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/cost-estimates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"backup_id": "string",
"is_sync": 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": {
"restore_end_timestamp": "string",
"restore_start_timestamp": "string"
},
"protection_group_s3_asset_id": "string"
}'