@Sample(name="vm-apply-evc",
description="This sample applies a Per-VM EVC setting to an existing VM.")
public class VMApplyEvc
extends ConnectedVimServiceBase
VMApplyEvc 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
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
VMApplyEvc() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setEvcKey(java.lang.String evcKey) |
void |
setList(java.lang.Boolean flag) |
void |
setVmPathName(java.lang.String vmPathName) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmpath",
required=false,
description="inventory path of the VM")
public void setVmPathName(java.lang.String vmPathName)
@Option(name="evc-key",
required=false,
description="Key of the EVC mode")
public void setEvcKey(java.lang.String evcKey)
@Option(name="list",
required=false,
parameter=false,
description="List only")
public void setList(java.lang.Boolean flag)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg