Files
PSOPNSenseAPI/docs/cmdlets/Get-OPNSenseVLAN.md
T

1.5 KiB

Get-OPNSenseVLAN

SYNOPSIS

Gets VLANs from an OPNSense firewall.

SYNTAX

Get-OPNSenseVLAN [[-UUID] <String>]

DESCRIPTION

The Get-OPNSenseVLAN cmdlet retrieves VLANs from an OPNSense firewall. You can retrieve all VLANs or a specific VLAN by UUID.

EXAMPLES

Example 1: Get all VLANs

Get-OPNSenseVLAN

This example retrieves all VLANs from the OPNSense firewall.

Example 2: Get a specific VLAN

Get-OPNSenseVLAN -UUID "a1b2c3d4-e5f6-7890-abcd-ef1234567890"

This example retrieves a specific VLAN by its UUID.

PARAMETERS

-UUID

The UUID of the VLAN to retrieve.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

Returns objects representing the VLANs.

NOTES

This cmdlet requires a connection to an OPNSense firewall. Use Connect-OPNSense to establish a connection.

New-OPNSenseVLAN Set-OPNSenseVLAN Remove-OPNSenseVLAN New-OPNSenseSubnetVLANs