< Back
Get-VDSwitchPrivateVlan
Post
NAME Get-VDSwitchPrivateVlan
SYNOPSIS
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
SYNTAX
Get-VDSwitchPrivateVlan [-VDSwitch] <VDSwitch[]> [-PrimaryVlanId <Int32[]>] [-PrivateVlanType <PrivateVlanType[]>]
[-SecondaryVlanId <Int32[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
PARAMETERS
-PrimaryVlanId <Int32[]>
Specifies the primary VLAN ID of the private VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrivateVlanType <PrivateVlanType[]>
Specifies the private VLAN type of the VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SecondaryVlanId <Int32[]>
Specifies the secondary VLAN ID of the private VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VDSwitch <VDSwitch[]>
Specifies the vSphere distributed switch whose private VLAN configuration entries to retrieve.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VDSwitchPrivateVlan objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... eVlan.html
New-VDSwitchPrivateVlan
Remove-VDSwitchPrivateVlan
SYNOPSIS
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
SYNTAX
Get-VDSwitchPrivateVlan [-VDSwitch] <VDSwitch[]> [-PrimaryVlanId <Int32[]>] [-PrivateVlanType <PrivateVlanType[]>]
[-SecondaryVlanId <Int32[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet retrieves the private VLAN configuration entries of a vSphere distributed switch.
PARAMETERS
-PrimaryVlanId <Int32[]>
Specifies the primary VLAN ID of the private VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrivateVlanType <PrivateVlanType[]>
Specifies the private VLAN type of the VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SecondaryVlanId <Int32[]>
Specifies the secondary VLAN ID of the private VLAN configuration entries that you want to retrieve.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VDSwitch <VDSwitch[]>
Specifies the vSphere distributed switch whose private VLAN configuration entries to retrieve.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VDSwitchPrivateVlan objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... eVlan.html
New-VDSwitchPrivateVlan
Remove-VDSwitchPrivateVlan