# Data Object - HostPortGroupSpec(vim.host.PortGroup.Specification)

Property of
  HostPortGroup, HostPortGroupConfig
Parameter to
  AddPortGroup, UpdatePortGroup
Extends
  DynamicData
See also
  HostNetworkPolicy

## Data Object Description

This data object type describes the PortGroup specification representing the properties on a PortGroup that can be configured.

Properties

Name | Type | Description
--- | --- | ---
name | xsd:string | The name of the port group.
policy | HostNetworkPolicy | Policies on the port group take precedence over the ones specified on the virtual switch.
vlanId | xsd:int | The VLAN ID for ports using this port group. Possible values: A value of 0 specifies that you do not want the port group associated with a VLAN. A value from 1 to 4094 specifies a VLAN ID for the port group. A value of 4095 specifies that the port group should use trunk mode, which allows the guest operating system to manage its own VLAN tags.
vswitchName | xsd:string | The identifier of the virtual switch on which this port group is located.
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="HostPortGroupSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="name" type="xsd:string"/> <element name="vlanId" type="xsd:int"/> <element name="vswitchName" type="xsd:string"/> <element name="policy" type="vsan:HostNetworkPolicy"/> </sequence> </extension> </complexContent> </complexType>