Set-LMTopologysource
Syntax
Section titled “Syntax”Set-LMTopologysource -Id <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>] [-TechNotes <String>] [-PollingIntervalInSeconds <Int32>] [-Group <String>] [-ScriptType <String>] [-Script <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMTopologysource -Name <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>] [-TechNotes <String>] [-PollingIntervalInSeconds <Int32>] [-Group <String>] [-ScriptType <String>] [-Script <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMTopologysource function modifies an existing topology source in LogicMonitor.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMTopologysource -Id 123 -NewName "UpdatedSource" -Description "New description"Updates the topology source with new name and description.Parameters
Section titled “Parameters”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: FalseSpecifies the current name of the topology source.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NewName
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-Script”Specifies the script content.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept 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”Outputs
Section titled “Outputs”Returns a LogicMonitor.Topologysource object containing the updated configuration.
Section titled “Returns a LogicMonitor.Topologysource object containing the updated configuration.”This function requires a valid LogicMonitor API authentication.