Package com.vmware.vm
Class VMApplyEvc
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.vm.VMApplyEvc
-
@Sample(name="vm-apply-evc", description="This sample applies a Per-VM EVC setting to an existing VM.") public class VMApplyEvc extends ConnectedVimServiceBaseVMApplyEvc This sample makes applies a Per-VM EVC setting to an existing VM. Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vmpath [optional] : inventory path of the VM list [optional] : list the EVC modes only evc-key [optional] : Key to apply. If unset, will remove the mode. Command Line: java com.vmware.vm.VMApplyEvc --url [webserviceurl] --username [username] --password [password] --vmpath [vmPath] --evc-key [EVC key] --list
-
-
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 VMApplyEvc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetEvcKey(java.lang.String evcKey)voidsetList(java.lang.Boolean flag)voidsetVmPathName(java.lang.String vmPathName)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVmPathName
@Option(name="vmpath", required=false, description="inventory path of the VM") public void setVmPathName(java.lang.String vmPathName)
-
setEvcKey
@Option(name="evc-key", required=false, description="Key of the EVC mode") public void setEvcKey(java.lang.String evcKey)
-
setList
@Option(name="list", required=false, parameter=false, description="List only") public void setList(java.lang.Boolean flag)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidStateFaultMsg, com.vmware.vim25.InvalidCollectorVersionFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-