public class AddVirtualSwitchPortGroup extends Object
This sample is used to add a Virtual Switch PortGroup To run this samples following parameters are used:> vsiwtchid [required]: Name of the switch in which portgroup is to be added portgroupname [required]: Name of the port group host [optional]: Name of the host datacenter [optional]: Name of the datacenter Command Line:to add a Virtual switch Port Group as: - run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password [password] --vsiwtchid [mySwitch] --datacenter [mydatacenter] --portgroupname [myportgroup] --host[hostname] Command Line:to add a Virtual switch Port Group without specifying the host: run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password [password] --vsiwtchid [mySwitch] --datacenter [mydatacenter] --portgroupname [myportgroup] Command Line:to add a Virtual switch Port Group without specifying the datacenter - run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password [password] --vsiwtchid [mySwitch] --portgroupname [myportgroup]
| Constructor and Description |
|---|
AddVirtualSwitchPortGroup() |
Copyright © 2011-2012. All Rights Reserved.