Recovery
Recoveries have many configuration options. The below examples demonstrate one way of configuring recoveries. For all possible recovery options refer to the API reference for the corresponding mutation.
Export
Creates a new virtual machine from a snapshot
Recover Files
Restore files and folders from a snapshot
mutation {
vsphereVmRecoverFilesNew(input: {
id: "4d94175e-9fd4-5198-8c46-64c2ce3559a2"
clusterUuid: "6a271636-9392-4cba-90c5-bdbe227854ab"
config: {
destObjectId: "a8fd8809-bbdb-5a03-8663-1c1feb19791c"
shouldUseAgent: true
restoreConfig: {
restorePathPair: {
path: "C:\\foo\\bar\\example.txt"
restorePath: "C:\\foo\\bar"
}
}
}
}) {
id
}
}
In-Place Recovery
Update the source virtual machine with data from a snapshot using only changed blocks.
Live Mount
Create a new virtual machine from a snapshot. The recovered virtual machine uses the Rubrik cluster as its datastore.
mutation {
vsphereVmInitiateLiveMountV2(
input: {
id: "a8fd8809-bbdb-5a03-8663-1c1feb19791c"
config: {
clusterId: "e90741cc-4360-54b8-9ad3-84db4727c62e"
requiredRecoveryParameters: {
snapshotId: "823cd454-7349-5a2c-a055-a936faf04c73"
},
mountExportSnapshotJobCommonOptionsV2: {
powerOn: true
disableNetwork: true
vmName: "livemountExample"
}
}
}
) {
id
}
}
Instant Recovery
Replace the source virtual machine with a virtual machine recovered from a snapshot. The recovered virtual machine uses the Rubrik cluster as the datastore.
mutation {
vsphereVmInitiateInstantRecoveryV2(
input: {
id: "a8fd8809-bbdb-5a03-8663-1c1feb19791c"
config: {
preserveMoid: true
shouldRecoverTags: true
clusterId: "e90741cc-4360-54b8-9ad3-84db4727c62e"
requiredRecoveryParameters: {
snapshotId: "823cd454-7349-5a2c-a055-a936faf04c73"
},
mountExportSnapshotJobCommonOptionsV2: {
powerOn: true
keepMacAddresses: true
disableNetwork: false
}
}
}
) {
id
}
}
Mount Virtual Disks
Create new virtual disks from a snapshot, using the Rubrik cluster as the datastore. Mount these disks to another virtual machine.