public class RemoveVirtualSwitch extends Object
This sample is used to remove a virtual switch To run this samples following parameters are used: vsiwtchid [required]: Name of the switch to be removed host [optional]: Name of the host datacenter [optional]: Name of the datacenter Command Line: to remove the Virtual Switch from a virtual center run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password *[password] --vsiwtchid [mySwitch] --datacenter [mydatacenter] --host[hostname] Command Line:to remove a Virtual Switch from a virtual center without specifying the host run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password *[password] --vsiwtchid [mySwitch] --datacenter [mydatacenter] Command Line:to remove a Virtual Switch from a virtual center without specifying the datacenter run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password [password] --vsiwtchid [mySwitch] --host [host]/** http://vijava.sf.net
| Constructor and Description |
|---|
RemoveVirtualSwitch() |
public static void removeVirtualSwitch(HostSystem host, String vswitchId) throws RemoteException
RemoteExceptionCopyright © 2011-2012. All Rights Reserved.