Restore an EBS volume
Restores the specified source EBS volume backup to the specified target destination. The source EBS volume must be one that was backup up by Clumio.
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
The EBS volume backup to be restored.
backup_id string requiredThe Clumio-assigned ID of the EBS volume backup to be restored. Use the GET /backups/aws/ebs-volumes endpoint to fetch valid values.
target object required
The configuration of the EBS volume to be restored.
aws_az string requiredThe availability zone into which the EBS volume is restored. For example,
us-west-2a
. Use the GET /datasources/aws/environments endpoint to fetch valid values.environment_id string requiredThe Clumio-assigned ID of the AWS environment to be used as the restore destination. Use the GET /datasources/aws/environments endpoint to fetch valid values.
iops int64Iops of the volume to be restored. Iops field is only applicable if volume_type is gp3, io1, io2.
kms_key_native_id stringThe KMS encryption key ID used to encrypt the EBS volume data. The KMS encryption key ID is stored in the AWS cloud as part of your AWS account.
tags object[]
The AWS tags to be applied to the restored volume. The tags are stored in the AWS cloud as part of your AWS account. An EBS volume can be have multiple tags. The target volume will not inherit any tags that were applied to the original volume. To find the tags that were applied to the original volume, use the GET /backups/aws/ebs-volumes endpoint to display the original volume's tag keys (
tags.key
) and tag values (tags.value
).key string requiredThe AWS-assigned tag key.
value stringThe AWS-assigned tag value.
type stringType of the volume to restore as. Allowed Values: gp2, gp3, io1, io2, sc1, st1, standard.
- 202
- default
Success
- application/api.clumio.restored-aws-ebs-volumes=v2+json
- Schema
- Example (from schema)
Schema
_embedded object
Embedded responses related to the resource.
read-task Embeds the associated task of a resource in the response if requested using the `embed` query parameter.Embeds the associated task of a resource in the response if requested using the
embed
query parameter._links object
URLs to pages related to the resource.
_self object
The HATEOAS link to this resource.
href stringThe URI for the referenced operation.
templated booleanDetermines whether the "href" link is a URI template. If set to
true
, the "href" link is a URI template.type stringThe 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 stringThe URI for the referenced operation.
templated booleanDetermines whether the "href" link is a URI template. If set to
true
, the "href" link is a URI template.type stringThe HTTP method to be used with the "href" link for the referenced operation.
- 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[]
A list of errors encountered during runtime.
error_code uint32error_message stringThe reason for the error.
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}