Package com.vmware.vm
Class XVCvMotion
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.vm.XVCvMotion
-
@Sample(name="XVCvMotion", description="Used to Relocate VM from one VC to another") public class XVCvMotion extends ConnectedVimServiceBaseXVCvMotion 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]
-
-
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 XVCvMotion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidplaceVM()voidsetCluster(java.lang.String clusterName)voidsetRemoteUrl(java.lang.String remoteurl)voidsetRpassword(java.lang.String rpassword)voidsetRuser(java.lang.String ruser)voidsetTargetFolder(java.lang.String targetFolder)voidsetThumbprint(java.lang.String thumbprint)voidsetVmName(java.lang.String name)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVmName
@Option(name="vmname", description="name of the virtual machine to be migrated") public void setVmName(java.lang.String name)
-
setCluster
@Option(name="clustername", description="Target Cluster Name") public void setCluster(java.lang.String clusterName)
-
setRemoteUrl
@Option(name="remoteurl", description="Target vCenter URL ") public void setRemoteUrl(java.lang.String remoteurl)
-
setRuser
@Option(name="ruser", description="Target vCenter username") public void setRuser(java.lang.String ruser)
-
setRpassword
@Option(name="rpassword", description="Target vCenter Password") public void setRpassword(java.lang.String rpassword)
-
setThumbprint
@Option(name="rthumbprint", description="Thumbprint of Target vCenter") public void setThumbprint(java.lang.String thumbprint)
-
setTargetFolder
@Option(name="targetfolder", description="Target Folder", required=false) public void setTargetFolder(java.lang.String targetFolder)
-
placeVM
@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- Throws:
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
-
-