Class RemoveVirtualSwitchPortGroup


  • @Sample(name="remove-virtual-switch-port-group",
            description="This sample removes a Virtual Switch PortGroup")
    public class RemoveVirtualSwitchPortGroup
    extends ConnectedVimServiceBase
     RemoveVirtualSwitchPortGroup
    
     This sample removes a Virtual Switch PortGroup
    
     Parameters:
     url             [required] : url of the web service
     username        [required] : username for the authentication
     password        [required] : password for the authentication
     portgroupname   [required] : Name of the port group to be removed
     hostname        [required] : Name of the host
    
     Command Line:
     Remove Virtual Switch Port Group
     run.bat com.vmware.host.RemoveVirtualSwitchPortGroup
     --url [webserviceurl] --username [username] --password [password]
     --portgroupname[myportgroup] --hostname [hostname]
    
     
    • Constructor Detail

      • RemoveVirtualSwitchPortGroup

        public RemoveVirtualSwitchPortGroup()
    • Method Detail

      • setHost

        @Option(name="hostname",
                description="Name of the host")
        public void setHost​(java.lang.String host)
      • setPortgroupname

        @Option(name="portgroupname",
                description="Name of the port group to be removed")
        public void setPortgroupname​(java.lang.String portgroupname)
      • run

        @Action
        public void run()
                 throws com.vmware.vim25.RuntimeFaultFaultMsg,
                        com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg