Get-LMRepositoryLogicModule
Syntax
Section titled “Syntax”Get-LMRepositoryLogicModule [[-Type] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Get-LMRepositoryLogicModule function retrieves LogicModules from the LogicMonitor repository. It supports retrieving different types of modules including datasources, property rules, event sources, topology sources, and config sources.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Retrieve all datasource modulesGet-LMRepositoryLogicModuleExample 2
Section titled “Example 2”#Retrieve all event source modulesGet-LMRepositoryLogicModule -Type "eventsource"Parameters
Section titled “Parameters”The type of LogicModule to retrieve. Valid values are “datasource”, “propertyrules”, “eventsource”, “topologysource”, “configsource”. Defaults to “datasource”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: DatasourceAccept 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 LogicMonitor.RepositoryLogicModules objects.
Section titled “Returns LogicMonitor.RepositoryLogicModules objects.”You must run Connect-LMAccount before running this command.