Syntax
Get-VDSwitchPrivateVlan [-VDSwitch] <VDSwitch[]> [-PrimaryVlanId <Int32[]>] [-PrivateVlanType <PrivateVlanType[]>] [-SecondaryVlanId <Int32[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VDSwitch | VDSwitch[] | Specifies the vSphere distributed switch whose private VLAN configuration entries to retrieve. | true | True (ByValue) | |
PrimaryVlanId | Int32[] | Specifies the primary VLAN ID of the private VLAN configuration entries that you want to retrieve. | false | False | |
PrivateVlanType | PrivateVlanType[] | Specifies the private VLAN type of the VLAN configuration entries that you want to retrieve. | false | False | |
SecondaryVlanId | Int32[] | Specifies the secondary VLAN ID of the private VLAN configuration entries that you want to retrieve. | false | False | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | False |
Return Type
Zero or more VDSwitchPrivateVlan objectsNotes
Examples
-------------------------- Example 1 --------------------------
Get-VDSwitch "MyVDSwitch" | Get-VDSwitchPrivateVlan -PrivateVlanType Isolated
Retrieves all private VLAN entries of a vSphere distributed switch named "MyVDSwitch" with specified 'isolated' VLAN port type.
-------------------------- Example 2 --------------------------
Get-VDSwitch "MyVDSwitch" | Get-VDSwitchPrivateVlan -PrimaryVlanId 1,3
Retrieves the private VLAN entries of a vSphere distributed switch named "MyVDSwitch" with primary VLAN identifiers 1 and 3.