Recover Volume
POST https://{{cluster_vip}}/v2/data-protect/recoveries
Recovers the object specified in the request body.
Ensure to provide the following parameters in the request body:
- The snapshot ID (
snapshotId
) from which you want to recover the specified object. - The target ID where the object will be recovered to.
.
Request Body
{"name"=>"{{recovery_taskname}}", "snapshotEnvironment"=>"kPhysical", "physicalParams"=>{"objects"=>[{"snapshotId"=>"{{snapshotId}}"}], "recoveryAction"=>"RecoverPhysicalVolumes", "recoverVolumeParams"=>{"targetEnvironment"=>"kPhysical", "physicalTargetParams"=>{"mountTarget"=>{"id"=>7891}, "volumeMapping"=>[{"sourceVolumeGuid"=>"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3", "destinationVolumeGuid"=>"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3", "selected"=>true}, {"sourceVolumeGuid"=>"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3", "destinationVolumeGuid"=>"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO", "selected"=>true}, {"sourceVolumeGuid"=>"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO", "destinationVolumeGuid"=>"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3", "selected"=>true}], "forceUnmountVolume"=>nil}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: Created
{"id":"1788784541625014:1677666650254:2591","name":"{{recovery_taskname}}","startTimeUsecs":1677830304588071,"status":"Accepted","snapshotEnvironment":"kPhysical","recoveryAction":"RecoverPhysicalVolumes","permissions":[],"creationInfo":{"userName":"admin"},"canTearDown":false,"messages":null,"physicalParams":{"objects":[{"snapshotId":"{{snapshotId}}","protectionGroupId":"1788784541625014:1677666650254:651","snapshotCreationTimeUsecs":1677716794302670,"snapshotTargetType":"Local","storageDomainId":27,"progressTaskId":"/restore_object_0","messages":null,"objectInfo":{"id":7891,"name":"{{server_IP}}","sourceName":"Physical Servers","environment":"kPhysical","objectType":"kHost","protectionType":"kVolume","osType":"kLinux"}}],"recoveryAction":"RecoverPhysicalVolumes","recoverVolumeParams":{"targetEnvironment":"kPhysical","physicalTargetParams":{"volumeMapping":[{"sourceVolumeGuid":"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3","destinationVolumeGuid":"XYulm4-BWXH-FwV8-8YOe-5dqh-9Jh7-1ovDK3"},{"sourceVolumeGuid":"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3","destinationVolumeGuid":"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO"},{"sourceVolumeGuid":"p53g9W-e5S4-H7pH-SdtZ-L56V-3PVl-DQJmLO","destinationVolumeGuid":"SqSHKx-an4V-4URM-OVbc-YGnB-Nhvu-eS5nc3"}],"forceUnmountVolume":false,"mountTarget":{"id":7891,"name":"{{taget_server_IP}}"}}}}}