# Data Object - HostPortGroup(vim.host.PortGroup)

Property of
  HostNetworkInfo, HostVirtualSwitch
Extends
  DynamicData
See also
  HostNetworkPolicy, HostPortGroupPort, HostPortGroupSpec, HostVirtualSwitch
Since
  2.0

## Data Object Description

This data object type is used to describe port groups. Port groups are used to group virtual network adapters on a virtual switch, associating them with networks and network policies.

Properties

Name | Type | Description
--- | --- | ---
computedPolicy | HostNetworkPolicy | Computed network policies that are applicable for a port group. The inheritance scheme for PortGroup requires knowledge about the NetworkPolicy for a port group and its parent virtual switch as well as the logic for computing the results. This information is provided as a convenience so that callers need not duplicate the inheritance logic to determine the proper values for a network policy. See the description of the NetworkPolicy data object type for more information.
key* | xsd:string | The linkable identifier.
port* | HostPortGroupPort[] | The ports that currently exist and are used on this port group.
spec | HostPortGroupSpec | The specification of a port group.
vswitch* | xsd:string | The virtual switch that contains this port group.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="HostPortGroup"> <complexContent> <extension base="vslm:DynamicData"> <sequence> <element name="key" type="xsd:string" minOccurs="0"/> <element name="port" type="vslm:HostPortGroupPort" minOccurs="0" maxOccurs="unbounded"/> <element name="vswitch" type="xsd:string" minOccurs="0"/> <element name="computedPolicy" type="vslm:HostNetworkPolicy"/> <element name="spec" type="vslm:HostPortGroupSpec"/> </sequence> </extension> </complexContent> </complexType>