Get-VDBlockedPolicy Command | Vmware PowerCLI Reference

Get-VDBlockedPolicy

This cmdlet retrieves the blocking 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-VDBlockedPolicy
-VDPort < VDPort[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VDPort VDPort[] named
  • pipeline
Specifies the distributed ports for which you want to retrieve the blocking policy.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.Vds.Types.V1.Policy.BlockedPolicy

Examples

Example 1

Get-VDSwitch "MyVDSwitch" | Get-VDBlockedPolicy

Retrieves the blocking policy of a vSphere distributed switch named "MyVDSwitch".

Example 2

Get-VDPortgroup "MyVDPortgroup" | Get-VDPort | Get-VDBlockedPolicy

Retrieves the blocking policies of all ports inside a distributed port group named "MyVDPortgroup".

Related Commands

VDBlockedPolicy

This cmdlet retrieves the blocking policy for distributed ports.

This cmdlet modifies the blocking policy for distributed ports.