| Local Properties | Local Methods | |
Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
Name | Type | Description |
---|---|---|
childSnapshot* | ManagedObjectReference[]
to a VirtualMachineSnapshot[] |
All snapshots for which this snapshot is the parent.
Since vSphere API 4.1 |
config | VirtualMachineConfigInfo |
Information about the configuration of this virtual machine when this snapshot was
taken.
The datastore paths for the virtual machine disks point to the head of the disk chain that represents the disk at this given snapshot. The fileInfo.fileLayout field is not set.
|
Properties inherited from ExtensibleManagedObject | ||
availableField, value |
Methods
Methods defined in this Managed Object |
---|
RemoveSnapshot_Task, RenameSnapshot, RevertToSnapshot_Task |
Methods inherited from ExtensibleManagedObject |
setCustomValue |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VirtualMachineSnapshot used to make the method call. |
removeChildren | xsd:boolean |
Flag to specify removal of the entire snapshot subtree.
|
consolidate* | xsd:boolean |
(optional) If set to true, the virtual disk associated
with this snapshot will be merged with other disk if possible. Defaults to true.
Since vSphere API 5.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VirtualMachineSnapshot used to make the method call. |
name* | xsd:string |
New name for the snapshot.
|
description* | xsd:string |
New description for the snapshot.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
InvalidName | Thrown if the specified snapshot name is not valid. |
InvalidPowerState | Thrown if the operation cannot be performed in the current power state of the virtual machine. |
InvalidState | Thrown if the operation cannot be performed in the current state of the virtual machine. For example, the virtual machine's configuration is not available. |
NotSupported | Thrown if the host product does not support snapshot rename. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VirtualMachineSnapshot used to make the method call. |
host* | ManagedObjectReference
to a HostSystem |
(optional) Choice of host for the virtual machine, in case this
operation causes the virtual machine to power on.
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. 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.
|
suppressPowerOn* | xsd:boolean |
(optional) If set to true, the virtual
machine will not be powered on regardless of the power state when
the snapshot was created. Default to false.
Since vSphere API 4.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
Type | Description |
---|---|
FileFault | Thrown if there is a problem accessing the virtual machine on the filesystem. |
InsufficientResourcesFault | Thrown if this operation would violate a resource usage policy. |
InvalidPowerState | Thrown if the operation cannot be performed in the current power state of the virtual machine. |
InvalidState | Thrown if the operation cannot be performed in the current state of the virtual machine. For example, the virtual machine's configuration is not available. |
NotSupported | Thrown if the host product does not support snapshots. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress | Thrown if the virtual machine is busy. |
VmConfigFault | Thrown if a configuration issue prevents the power-on. Typically, a more specific fault, such as UnsupportedVmxLocation, is thrown. |
Events
Type | |
---|---|
None |
Top of page | Local Properties | Local Methods | |
Managed Object Types | Data Object Types | All Properties | All Methods |