Package com.vmware.vm
Class VMLinkedClone
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.vm.VMLinkedClone
-
@Sample(name="vm-linked-clone", description="This sample creates a linked clone from an existing snapshot\nEach independent disk needs a DiskLocator with\ndiskmovetype as moveAllDiskBackingsAndDisallowSharing\n") public class VMLinkedClone extends ConnectedVimServiceBaseVMLinkedClone This sample creates a linked clone from an existing snapshot Each independent disk needs a DiskLocator with diskmovetype as moveAllDiskBackingsAndDisallowSharing Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vmname [required] : Name of the virtual machine snapshotname [required] : Name of the snapshot clonename [required] : Name of the cloneName Command Line: Create a linked clone run.bat com.vmware.vm.VMLinkedClone --url [webserviceurl] --username [username] --password [password] --vmname [myVM] --snapshotname [snapshot name] --clonename [clone name]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description VMLinkedClone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetCloneName(java.lang.String cloneName)voidsetSnapshotName(java.lang.String snapshotName)voidsetVirtualMachineName(java.lang.String virtualMachineName)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVirtualMachineName
@Option(name="vmname", description="Name of the virtual machine") public void setVirtualMachineName(java.lang.String virtualMachineName)
-
setSnapshotName
@Option(name="snapshotname", description="Name of the snapshot") public void setSnapshotName(java.lang.String snapshotName)
-
setCloneName
@Option(name="clonename", description="Name of the cloneName") public void setCloneName(java.lang.String cloneName)
-
run
@Action public void run() throws com.vmware.vim25.CustomizationFaultFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.TaskInProgressFaultMsg, com.vmware.vim25.InsufficientResourcesFaultFaultMsg, com.vmware.vim25.VmConfigFaultFaultMsg, com.vmware.vim25.InvalidDatastoreFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.FileFaultFaultMsg, com.vmware.vim25.InvalidStateFaultMsg, com.vmware.vim25.MigrationFaultFaultMsg, com.vmware.vim25.InvalidCollectorVersionFaultMsg- Throws:
com.vmware.vim25.CustomizationFaultFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.TaskInProgressFaultMsgcom.vmware.vim25.InsufficientResourcesFaultFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.MigrationFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg
-
-