Plugins > vCenter Server 5.5.3 > VcVirtualMachine > revertToCurrentSnapshot_Task

Method revertToCurrentSnapshot_Task(VcHostSystem host, boolean suppressPowerOn)

Reverts the virtual machine to the current snapshot. This is equivalent to doing snapshot.currentSnapshot.revert.

If no snapshot exists, then the operation does nothing, and the virtual machine state remains unchanged.




Name Type Description
host VcHostSystem (optional) Choice of host for the virtual machine, in case this operation causes the virtual machine to power on. <p> If a snapshot was taken while a virtual machine was powered on, and this operation is invoked after the virtual machine was powered off, the operation causes the virtual machine to power on to reach the snapshot state. This parameter can be used to specify a choice of host where the virtual machine should power on. <p> If this parameter is not set, and the vBalance feature is configured for automatic load balancing, a host is automatically selected. Otherwise, the virtual machine keeps its existing host affiliation. <p> This is not supported for virtual machines associated with hosts on ESX 2.x servers.
suppressPowerOn boolean (optional) If set to true, the virtual machine will not be powered on regardless of the power state when the current snapshot was created. Default to false. <p>