Get-LMCollectorVersion
Syntax
Section titled “Syntax”All (Default)
Section titled “All (Default)”Get-LMCollectorVersion [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Filter
Section titled “Filter”Get-LMCollectorVersion [-Filter <Object>] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Get-LMCollectorVersion [-TopVersions] [-BatchSize <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Get-LMCollectorVersions function retrieves information about available LogicMonitor collector versions. It can return all versions, top versions only, or versions filtered by specific criteria.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Retrieve all collector versionsGet-LMCollectorVersionsExample 2
Section titled “Example 2”#Retrieve only top versionsGet-LMCollectorVersions -TopVersionsParameters
Section titled “Parameters”-Filter
Section titled “-Filter”A filter object to apply when retrieving collector versions. This parameter is part of a mutually exclusive parameter set.
Type: ObjectParameter Sets: FilterAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TopVersions
Section titled “-TopVersions”Switch to retrieve only the top versions of collectors. This parameter is part of a mutually exclusive parameter set.
Type: SwitchParameterParameter Sets: TopAliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 1000.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 1000Accept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns an array of collector version objects.
Section titled “Returns an array of collector version objects.”You must run Connect-LMAccount before running this command.