@Sample(name="XVCvMotion",
description="Used to Relocate VM from one VC to another")
public class XVCvMotion
extends ConnectedVimServiceBase
XVCvMotion Used to Relocate VM from one VC to another. 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 destcluster [required] : name of the cluster on target virtual center where to migrate the virtual machine. remoteurl [required] : url of web service for target virtual center ruser [required] : username for the authentication to the target virtual center. rpassword [required] : password for the authentication to the target virtual center. rthumbprint [required] : thumbprint of the target virtual center. targetfolder [optional] : folder on the target virtual center where to migrate the virtual machine. Command Line: run.bat com.vmware.vm.XVCvMotion --url [URLString] --username [User] --password [Password] --vmname [VMName] --destcluster [Target Cluster] --remoteurl [TargetVC URLString] --ruser [TargetVC User] --rpassword [TargetVC Password] --rthumbprint [TargetVC Thumbprint] --targetfolder [Target Folder]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
XVCvMotion() |
| Modifier and Type | Method and Description |
|---|---|
void |
placeVM() |
void |
setCluster(java.lang.String clusterName) |
void |
setRemoteUrl(java.lang.String remoteurl) |
void |
setRpassword(java.lang.String rpassword) |
void |
setRuser(java.lang.String ruser) |
void |
setTargetFolder(java.lang.String targetFolder) |
void |
setThumbprint(java.lang.String thumbprint) |
void |
setVmName(java.lang.String name) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="name of the virtual machine to be migrated")
public void setVmName(java.lang.String name)
@Option(name="clustername",
description="Target Cluster Name")
public void setCluster(java.lang.String clusterName)
@Option(name="remoteurl",
description="Target vCenter URL ")
public void setRemoteUrl(java.lang.String remoteurl)
@Option(name="ruser",
description="Target vCenter username")
public void setRuser(java.lang.String ruser)
@Option(name="rpassword",
description="Target vCenter Password")
public void setRpassword(java.lang.String rpassword)
@Option(name="rthumbprint",
description="Thumbprint of Target vCenter")
public void setThumbprint(java.lang.String thumbprint)
@Option(name="targetfolder",
description="Target Folder",
required=false)
public void setTargetFolder(java.lang.String targetFolder)
@Action
public void placeVM()
throws com.vmware.vim25.DuplicateNameFaultMsg,
com.vmware.vim25.InvalidNameFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.FileFaultFaultMsg,
com.vmware.vim25.InsufficientResourcesFaultFaultMsg,
com.vmware.vim25.InvalidDatastoreFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.MigrationFaultFaultMsg,
com.vmware.vim25.TimedoutFaultMsg,
com.vmware.vim25.VmConfigFaultFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg,
com.vmware.vim25.InvalidLocaleFaultMsg,
com.vmware.vim25.InvalidLoginFaultMsg
com.vmware.vim25.DuplicateNameFaultMsgcom.vmware.vim25.InvalidNameFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InsufficientResourcesFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.MigrationFaultFaultMsgcom.vmware.vim25.TimedoutFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.InvalidLocaleFaultMsgcom.vmware.vim25.InvalidLoginFaultMsg