< Back

Get-NsxMacSet

Sat Jan 18, 2020 9:09 pm

NAME Get-NsxMacSet



SYNOPSIS

Retrieves NSX MACSets





SYNTAX

Get-NsxMacSet [-scopeId <String[]>] [-IncludeReadOnly] [-Connection <PSObject>] [<CommonParameters>]



Get-NsxMacSet [-objectId <String>] [-scopeId <String[]>] [-IncludeReadOnly] [-Connection <PSObject>]

[<CommonParameters>]



Get-NsxMacSet [[-Name] <String>] [-scopeId <String[]>] -LocalOnly [-IncludeReadOnly] [-Connection <PSObject>]

[<CommonParameters>]



Get-NsxMacSet [[-Name] <String>] [-scopeId <String[]>] -UniversalOnly [-IncludeReadOnly] [-Connection <PSObject>]

[<CommonParameters>]



Get-NsxMacSet [[-Name] <String>] [-scopeId <String[]>] [-IncludeReadOnly] [-Connection <PSObject>]

[<CommonParameters>]





DESCRIPTION

An NSX MACSet is a grouping construct that allows for grouping of

MAC Addresses in a sigle container that can

be used either in DFW Firewall Rules or as members of a security

group.



This cmdlet returns MAC Set objects.





PARAMETERS

-objectId <String>

Get Mac sets by objectid



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Get mac sets by name



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-scopeId <String[]>

ScopeId of MacSet. Can define multiple scopeIds in a list to iterate accross scopes.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UniversalOnly [<SwitchParameter>]

Return only Universal objects



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-LocalOnly [<SwitchParameter>]

Return only Locally scoped objects



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-IncludeReadOnly [<SwitchParameter>]

Include mac sets with readonly attribute



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Retrieves all NSX MAC Sets



Get-NsxMacSet









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Retrieves NSX MAC Set by name



Get-NsxMacSet TEST_MAC_SET











RELATED LINKS