@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 ConnectedVimServiceBase
VMLinkedClone 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 snaphot 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]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
VMLinkedClone() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setCloneName(java.lang.String cloneName) |
void |
setSnapshotName(java.lang.String snapshotName) |
void |
setVirtualMachineName(java.lang.String virtualMachineName) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="Name of the virtual machine")
public void setVirtualMachineName(java.lang.String virtualMachineName)
@Option(name="snapshotname",
description="Name of the snaphot")
public void setSnapshotName(java.lang.String snapshotName)
@Option(name="clonename",
description="Name of the cloneName")
public void setCloneName(java.lang.String cloneName)
@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
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