@Sample(name="remove-virtual-switch",
description="removes a virtual switch")
public class RemoveVirtualSwitch
extends ConnectedVimServiceBase
RemoveVirtualSwitch This sample removes a virtual switch Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vswitchid [required] : Name of the switch to be added hostname [required] : Name of the host Command Line: Remove a Virtual Switch run.bat com.vmware.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password [password] --vswitchid [mySwitch] --hostname [hostname]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
RemoveVirtualSwitch() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setHost(java.lang.String host) |
void |
setVirtualswitchid(java.lang.String virtualswitchid) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="hostname",
description="Name of the host")
public void setHost(java.lang.String host)
@Option(name="vswitchid",
description="Name of the switch to be added")
public void setVirtualswitchid(java.lang.String virtualswitchid)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg