Package com.vmware.vm

Class VMApplyEvc


  • @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
     
    • Constructor Detail

      • VMApplyEvc

        public VMApplyEvc()
    • 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.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidStateFaultMsg
        com.vmware.vim25.InvalidCollectorVersionFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg