POST v1/bunits/{bunitId}/consumers/{consumerId}/cohesitydatasource/filerestore
Start restoring files and folders from a snapshot to the object they were backed up from.
Guest credentials are only used for virtual machines without a Cohesity agent, and are never stored.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
bunitId |
The ID of the business unit | integer |
Required |
consumerId |
The ID of the consumption unit the data-source is related to | integer |
Required |
Body Parameters
What to restore and where
CohesityFileRestoreRequest| Name | Description | Type | Additional information |
|---|---|---|---|
SnapshotId |
ID of the |
integer |
None. |
Items |
Collection of CohesityRestoreItem |
None. |
|
TargetDirectory |
Folder to restore to. Null or empty restores to the original location. |
string |
None. |
Overwrite |
True if existing files may be overwritten |
boolean |
None. |
Username |
Guest OS user name. Only for virtual machines without a Cohesity agent. Never stored. |
string |
None. |
Password |
Guest OS password. Only for virtual machines without a Cohesity agent. Never stored. |
string |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<CohesityFileRestoreRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SnapshotId>1</SnapshotId>
<Items>
<CohesityRestoreItem>
<Path>sample string 1</Path>
<IsFolder>true</IsFolder>
</CohesityRestoreItem>
<CohesityRestoreItem>
<Path>sample string 1</Path>
<IsFolder>true</IsFolder>
</CohesityRestoreItem>
</Items>
<TargetDirectory>sample string 2</TargetDirectory>
<Overwrite>true</Overwrite>
<Username>sample string 4</Username>
<Password>sample string 5</Password>
</CohesityFileRestoreRequest>
Response Information
Resource Description
CohesityRestoreRequest| Name | Description | Type | Additional information |
|---|---|---|---|
Href |
A link to this specfic instance. |
URI |
None. |
ConsumerId |
The consumption unit the restore was started for |
integer |
None. |
DataSource |
The object the files were restored to (and backed up from) |
CohesityDataSource |
None. |
SnapshotId |
ID of the |
integer |
None. |
SnapshotTime |
Start time of the snapshot restored from |
date |
None. |
RequestingUser |
The user who started the restore |
User |
None. |
CohesityTaskId |
ID of the restore task on the Cohesity cluster |
integer |
None. |
Name |
Name of the restore task on the Cohesity cluster |
string |
None. |
Status |
One of the statuses of |
string |
None. |
ErrorMessage |
string |
None. |
|
Items |
Collection of CohesityRestoreItem |
None. |
|
TargetDirectory |
Folder restored to. Null for the original location. |
string |
None. |
Overwrite |
boolean |
None. |
|
UsedGuestCredentials |
True if guest OS credentials were given. The credentials themselves are never stored. |
boolean |
None. |
StartTime |
date |
None. |
|
EndTime |
date |
None. |
|
Id |
A unique ID for the object. |
integer |
Read-only. |
CreatedDate |
Time and date the object was created. |
date |
Read-only. |
ArchivedDate |
Time and date the object was or is going to be archived. Unarchived objects have no value in ArchivedDate |
date |
Read-only. |
Operations |
Collection of OperationResult |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.