com.vmware.vim25.mo.samples.network
Class RemoveVirtualSwitchPortGroup
java.lang.Object
com.vmware.vim25.mo.samples.network.RemoveVirtualSwitchPortGroup
public class RemoveVirtualSwitchPortGroup
- extends Object
This sample is used to remove a Virtual Switch PortGroup
To run this samples following parameters are used:
Parameters:
portgroupname [required]: Name of the port group to be removed
host [optional]: Name of the host
datacenter [optional]: Name of the datacenter
Command Line: To remove a Virtual Switch Port Group
run.bat com.vmware.samples.host.RemoveVirtualSwitchPortGroup --url [webserviceurl]
--username [username] --password
--datacenter [mydatacenter] --portgroupname[
Command Line: To remove a Virtual Switch Port Group without specifying the host name
run.bat com.vmware.samples.host.RemoveVirtualSwitchPortGroup --url [webserviceurl]
--username [username] --password
--datacenter [mydatacenter] --portgroupname[Command Line: To remove a Virtual Switch Port Group without specifying the datacenter name
run.bat com.vmware.samples.host.RemoveVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password
--portgroupname[
- Author:
- Steve Jin
THis is a sample converted from VI SDK samples
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveVirtualSwitchPortGroup
public RemoveVirtualSwitchPortGroup()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011-2012. All Rights Reserved.