Get-VDSwitchPrivateVlan
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
VDSwitch | VDSwitch[] | named |
|
Specifies the vSphere distributed switch whose private VLAN configuration entries to retrieve. |
optional | PrimaryVlanId | Int32[] | named |
|
Specifies the primary VLAN ID of the private VLAN configuration entries that you want to retrieve. |
optional | PrivateVlanType | PrivateVlanType[] | named |
|
Specifies the private VLAN type of the VLAN configuration entries that you want to retrieve. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | SecondaryVlanId | Int32[] | named |
|
Specifies the secondary VLAN ID of the private VLAN configuration entries that you want to retrieve. |
optional | Server | VIServer[] | named |
|
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.VDSwitchPrivateVlanExamples
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.
Related Commands
VDSwitch
This cmdlet exports the configuration of a specified vSphere distributed switch to a .zip file.
This cmdlet retrieves vSphere distributed switches.
This cmdlet creates vSphere distributed switches.
This cmdlet removes vSphere distributed switches.
This cmdlet modifies the configuration of vSphere distributed switches.
VDSwitchPhysicalNetworkAdapter
This cmdlet adds host physical network adapters to a vSphere distributed switch.
This cmdlet removes host physical network adapters from the vSphere distributed switches they are connected to.
VDSwitchPrivateVlan
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
This cmdlet creates private VLAN configuration entries on a vSphere distributed switch.
This cmdlet removes private VLAN configuration entries from vSphere distributed switches.
VDSwitchVMHost
This cmdlet adds hosts to the specified vSphere distributed switch.
This cmdlet removes hosts from the specified vSphere distributed switches.