@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]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
RemoveVirtualSwitchPortGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setHost(java.lang.String host) |
void |
setPortgroupname(java.lang.String portgroupname) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="hostname",
description="Name of the host")
public void setHost(java.lang.String host)
@Option(name="portgroupname",
description="Name of the port group to be removed")
public void setPortgroupname(java.lang.String portgroupname)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg