@Sample(name="vm-relocate",
description="Used to relocate a linked clone using disk move type")
public class VMRelocate
extends ConnectedVimServiceBase
VMRelocate
Used to relocate a linked clone using disk move type
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
diskmovetype [required] : Either of
[moveChildMostDiskBacking | moveAllDiskBackingsAndAllowSharing]
datastorename [required] : Name of the datastore
Command Line:
run.bat com.vmware.vm.VMRelocate --url [URLString] --username [User] --password [Password]
--vmname [VMName] --diskmovetype [DiskMoveType] --datastorename [Datastore]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
VMRelocate() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setDatastoreName(java.lang.String name) |
void |
setDiskMoveType(java.lang.String type) |
void |
setVmname(java.lang.String vmname) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="name of the virtual machine")
public void setVmname(java.lang.String vmname)
@Option(name="diskmovetype",
description="Either of\n[moveChildMostDiskBacking | moveAllDiskBackingsAndAllowSharing]")
public void setDiskMoveType(java.lang.String type)
@Option(name="datastorename",
description="Name of the datastore")
public void setDatastoreName(java.lang.String name)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
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.TimedoutFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InsufficientResourcesFaultFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.MigrationFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.TimedoutFaultMsg