Package com.vmware.host
Class RemoveVirtualSwitchPortGroup
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.host.RemoveVirtualSwitchPortGroup
-
@Sample(name="remove-virtual-switch-port-group", description="This sample removes a Virtual Switch PortGroup") public class RemoveVirtualSwitchPortGroup extends ConnectedVimServiceBaseRemoveVirtualSwitchPortGroup 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]
-
-
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 RemoveVirtualSwitchPortGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetHost(java.lang.String host)voidsetPortgroupname(java.lang.String portgroupname)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
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.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-