Set-LMTopologysource
Syntax
Id
Set-LMTopologysource -Id <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>] [-TechNotes <String>] [-PollingIntervalInSeconds <Int32>] [-Group <String>] [-ScriptType <String>] [-Script <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
Set-LMTopologysource -Name <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>] [-TechNotes <String>] [-PollingIntervalInSeconds <Int32>] [-Group <String>] [-ScriptType <String>] [-Script <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMTopologysource function modifies an existing topology source in LogicMonitor.
Examples
Example 1
Set-LMTopologysource -Id 123 -NewName "UpdatedSource" -Description "New description"Updates the topology source with new name and description.
Parameters
-Id
Specifies the ID of the topology source to modify.
Type: StringParameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Name
Specifies the current name of the topology source.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NewName
Specifies the new name for the topology source.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Description
Specifies the description for the topology source.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-appliesTo
Specifies the applies to expression for the topology source.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-TechNotes
Specifies technical notes for the topology source.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-PollingIntervalInSeconds
Specifies the polling interval in seconds. Valid values: 1800, 3600, 7200, 21600.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Group
Specifies the group for the topology source.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ScriptType
Specifies the script type. Valid values: “embed”, “powerShell”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Script
Specifies the script content.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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.
Outputs
Returns a LogicMonitor.Topologysource object containing the updated configuration.
Notes
This function requires a valid LogicMonitor API authentication.