Recover File
POST https://{{cluster_vip}}/v2/data-protect/recoveries
Recover the objects specified in the request body.
Ensure to provide the following parameters in the request body:
- The snapshot ID from which you want to recover the specified object.
- The target ID where the object will be recovered to.
The {{timestamp}}
variable in the request body will be auto-populated when you run the API.
Request Body
{"name"=>"Recover_{{timestamp}}", "snapshotEnvironment"=>"kGenericNas", "genericNasParams"=>{"objects"=>[{"snapshotId"=>"{{Linux_NAS_Snapshot}}"}], "recoveryAction"=>"RecoverFiles", "recoverFileAndFolderParams"=>{"filesAndFolders"=>[{"absolutePath"=>"/1.txt", "isDirectory"=>false}], "targetEnvironment"=>"kGenericNas", "genericNasTargetParams"=>{"recoverToNewSource"=>false, "originalSourceConfig"=>{"overwriteExistingFile"=>false, "preserveFileAttributes"=>true, "continueOnError"=>true, "encryptionEnabled"=>false, "recoverToOriginalPath"=>true}}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |