Instantly recover a vSphere VM from a provided snapshot. If a specific date and time is not provided, the last snapshot taken will be used.
def vsphere_instant_recovery(vm_name, date='latest', time='latest', host='current', remove_network_devices=False, power_on=True, disable_network=False, keep_mac_addresses=False, preserve_moid=False, timeout=15)
The name of the VM to Instantly Recover.
The date of the snapshot you wish to Instantly Recover formated as
The time of the snapshot you wish to Instantly Recover formated formated as
The hostname or IP address of the ESXi host to Instantly Recover the VM on. By default, the current host will be used.
Flag that determines whether to remove the network interfaces from the Instantly Recovered VM. Set to
Flag that determines whether the VM should be powered on after Instant Recovery. Set to
Sets the state of the network interfaces when the VM is instantly recovered. Use
Flag that determines whether the MAC addresses of the network interfaces on the source VM are assigned to the new VM. Set to
Flag that determines whether to preserve the MOID of the source VM in a restore operation. Use
The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error.
The full response of
import rubrik_cdmrubrik = rubrik_cdm.Connect()vm_name = "python-sdk-demo"date = "08-26-2018"time = "12:11 AM"instant_recovery = rubrik.vsphere_instant_recovery(vm_name, date, time)