Import-LMRepositoryLogicModules
Syntax
Import-LMRepositoryLogicModules [-Type] <String> [-LogicModuleNames] <String[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Import-LMRepositoryLogicModules function imports specified logic modules from the LogicMonitor repository into your portal.
Examples
Example 1
#Import specific datasourcesImport-LMRepositoryLogicModules -Type "datasources" -LogicModuleNames "DataSource1", "DataSource2"
Parameters
-Type
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
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
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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
None. You cannot pipe objects to this command.
Outputs
Returns a success message with the names of imported modules.
Notes
You must run Connect-LMAccount before running this command.