# Data Object - DistributedVirtualSwitchPortConnection(vim.dvs.PortConnection)

Property of
  HostVirtualNicConnection, HostVirtualNicSpec, VirtualEthernetCardDistributedVirtualPortBackingInfo, VnicPortArgument
Extends
  DynamicData
Since
  vSphere API 4.0

## Data Object Description

The DistributedVirtualSwitchPortConnection data object represents a connection or association between a DistributedVirtualPortgroup or a DistributedVirtualPort and one of the following entities:

- Virtual machine virtual NIC (VirtualEthernetCardDistributedVirtualPortBackingInfo)
- Host virtual NIC (HostVirtualNic)
- Physical NIC (HostNetworkInfo.pnic)

Properties

Name | Type | Description
--- | --- | ---
connectionCookie* | xsd:int | Cookie that represents this DistributedVirtualSwitchPortConnection instance for the port. The cookie value is generated by the Server. The Server ignores any value set by an SDK client. The same cookie is present in the distributed virtual port configuration (DistributedVirtualPort.connectionCookie) so that the Server can verify that the entity is the rightful connectee of the port.
portgroupKey* | xsd:string | Key of the portgroup. If specified, the connection object represents a connection or an association between a DistributedVirtualPortgroup and a Virtual NIC or physical NIC. In this case, setting the portKey is not necessary for a early-binding portgroup and is not allowed for a late-binding portgroup. The portKey property will be populated by the implementation at the time of port binding.
portKey* | xsd:string | Key of the port. If specified, this object represents a connection or an association between an individual DistributedVirtualPort and a Virtual NIC or physical NIC. See portgroupKey for more information on populating this property.
switchUuid | xsd:string | UUID of the switch (DistributedVirtualSwitch.uuid).
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DistributedVirtualSwitchPortConnection"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="switchUuid" type="xsd:string"/> <element name="portgroupKey" type="xsd:string" minOccurs="0"/> <element name="portKey" type="xsd:string" minOccurs="0"/> <element name="connectionCookie" type="xsd:int" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>