To specify the network traffic shaping policy on a port group, use a Virtual Distributed Switch (VDS) configuration. The
DistributedVirtualSwitch.config.setting
property is a
DVPortSetting
object.
Use these properties:
DVPortSetting.inShapingPolicy
DVPortSetting.outShapingPolicy
To connect a virtual machine to a distributed virtual switch and use the DVPortSetting policies, specify port or portgroup connections in the distributed virtual port backing (
VirtualEthernetCardDistributedVirtualPortBackingInfo
) for the virtual Ethernet cards on the virtual machine (
VirtualEthernetCard.backing
).
For more information, see
Managed Object - DistributedVirtualSwitch in the
vSphere API documentation.