Skip to content

Get-LMAccessGroup

Terminal window
Get-LMAccessGroup [-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMAccessGroup [-Id <int>] [-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMAccessGroup [-Name <string>] [-BatchSize <int>] [<CommonParameters>]
Terminal window
Get-LMAccessGroup [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]

The Get-LMAccessGroup function retrieves access group information from LogicMonitor. It can return a single access group by ID or name, or multiple groups based on filter criteria.

Terminal window
#Retrieve an access group by ID
Get-LMAccessGroup -Id 123
Terminal window
#Retrieve an access group by name
Get-LMAccessGroup -Name "Admin Group"
Terminal window
#Retrieve access groups using a filter
Get-LMAccessGroup -Filter "name -like 'Dev*'"

The number of results to return per request. Must be between 1 and 1000. Default is 1000.

Type: System.Int32
DefaultValue: 1000
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

A filter object to apply when retrieving access groups. This parameter is part of a mutually exclusive parameter set.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Filter
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The ID of the access group to retrieve. This parameter is part of a mutually exclusive parameter set.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Id
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The name of the access group to retrieve. This parameter is part of a mutually exclusive parameter set.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Name
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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