Import-LMRepositoryLogicModule
Syntax
Section titled “Syntax”Import-LMRepositoryLogicModule [-Type] <String> [-LogicModuleNames] <String[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Import-LMRepositoryLogicModule function imports specified logic modules from the LogicMonitor repository into your portal.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Import specific datasourcesImport-LMRepositoryLogicModule -Type "datasources" -LogicModuleNames "DataSource1", "DataSource2"Parameters
Section titled “Parameters”The type of logic modules to import. Valid values are “datasources”, “propertyrules”, “eventsources”, “topologysources”, “configsources”.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-LogicModuleNames
Section titled “-LogicModuleNames”An array of logic module names to import.
Type: String[]Parameter Sets: (All)Aliases: Name
Required: TruePosition: 2Default value: NoneAccept pipeline input: True (ByPropertyName)Accept 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 a success message with the names of imported modules.
Section titled “Returns a success message with the names of imported modules.”You must run Connect-LMAccount before running this command.