Syntax
Get-VDSwitchPrivateVlan [-VDSwitch] <VDSwitch[]> [-PrimaryVlanId <Int32[]>] [-SecondaryVlanId <Int32[]>] [-PrivateVlanType <PrivateVlanType[]>] [-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.