Skip to content

Get-LMCollectorGroup

Syntax

All (Default)

Terminal window
Get-LMCollectorGroup [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Id

Terminal window
Get-LMCollectorGroup [-Id <Int32>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Name

Terminal window
Get-LMCollectorGroup [-Name <String>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Filter

Terminal window
Get-LMCollectorGroup [-Filter <Object>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

FilterWizard

Terminal window
Get-LMCollectorGroup [-FilterWizard] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Description

The Get-LMCollectorGroup function retrieves collector groups from LogicMonitor based on the specified parameters. It supports retrieving collector groups by ID, name, or using a filter. The function uses the LogicMonitor REST API to make the requests.

Examples

Example 1

Terminal window
Get-LMCollectorGroup -Id 123
Retrieves the collector group with the specified ID.

Example 2

Terminal window
Get-LMCollectorGroup -Name "Group 1"
Retrieves the collector group with the specified name.

Example 3

Terminal window
Get-LMCollectorGroup -Filter @{ Property = "Value" }
Retrieves collector groups based on the specified filter criteria.

Parameters

-Id

Specifies the ID of the collector group to retrieve. This parameter is mutually exclusive with the Name and Filter parameters.

Type: Int32
Parameter Sets: Id
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Name

Specifies the name of the collector group to retrieve. This parameter is mutually exclusive with the Id and Filter parameters.

Type: String
Parameter Sets: Name
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Filter

Specifies a filter object to retrieve collector groups based on specific criteria. This parameter is mutually exclusive with the Id and Name parameters.

Type: Object
Parameter Sets: Filter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FilterWizard

Specifies the use of the FilterWizard to assist in building a valid filter. This parameter is mutually exclusive with the Id, Name, and Filter parameters.

Type: SwitchParameter
Parameter Sets: FilterWizard
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-BatchSize

Specifies the number of collector groups to retrieve per request. The default value is 1000.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1000
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
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

Outputs

Notes