Get-VDTrafficShapingPolicy Command | Vmware PowerCLI Reference

Get-VDTrafficShapingPolicy

This cmdlet retrieves the traffic shaping policy for distributed ports. For distributed port group and vSphere distributed switch parameter sets, the default port policy at the distributed port group or switch level is retrieved.

Syntax

Get-VDTrafficShapingPolicy
-Direction < TrafficDirection >
-VDPort < VDPort[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Direction TrafficDirection named
Specifies the direction of the traffic shaping policy.
required
VDPort VDPort[] named
  • pipeline
Specifies the distributed ports for which you want to retrieve the traffic shaping policy.
optional ProgressAction ActionPreference named
Get-VDTrafficShapingPolicy
-Direction < TrafficDirection >
-VDPortgroup < VDPortgroup[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Direction TrafficDirection named
Specifies the direction of the traffic shaping policy.
required
VDPortgroup VDPortgroup[] named
  • pipeline
Specifies a distributed port group for which you want to retrieve the default traffic shaping policy.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
Get-VDTrafficShapingPolicy
-Direction < TrafficDirection >
-VDSwitch < VDSwitch[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Direction TrafficDirection named
Specifies the direction of the traffic shaping policy.
required
VDSwitch VDSwitch[] named
  • pipeline
Specifies a vSphere distributed switch for which you want to retrieve the default traffic shaping policy.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

Output

VMware.VimAutomation.Vds.Types.V1.Policy.TrafficShapingPolicy

Examples

Example 1

Get-VDSwitch "MyVDSwitch" | Get-VDTrafficShapingPolicy -Direction In

Retrieves the ingress traffic shaping policy of a vSphere distributed switch named "MyVDSwitch".

Example 2

Get-VDPortgroup "MyVDPortgroup" | Get-VDPort | Get-VDTrafficShapingPolicy -Direction Out

Retrieves the engress traffic shaping policies of all ports inside a distributed port group named "MyVDPortgroup".

Related Commands

VDTrafficShapingPolicy

This cmdlet retrieves the traffic shaping policy for distributed ports.

This cmdlet modifies the traffic shaping policy for distributed ports.