Skip to content

Import-LMRepositoryLogicModules

Syntax

Terminal window
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

Terminal window
#Import specific datasources
Import-LMRepositoryLogicModules -Type "datasources" -LogicModuleNames "DataSource1", "DataSource2"

Parameters

-Type

The type of logic modules to import. Valid values are “datasources”, “propertyrules”, “eventsources”, “topologysources”, “configsources”.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LogicModuleNames

An array of logic module names to import.

Type: String[]
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
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

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.