Skip to content

Set-LMPropertysource

Terminal window
Set-LMPropertysource -Id <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>]
[-TechNotes <String>] [-Tags <String[]>] [-TagsMethod <String>] [-Group <String>] [-ScriptType <String>]
[-Script <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Set-LMPropertysource -Name <String> [-NewName <String>] [-Description <String>] [-appliesTo <String>]
[-TechNotes <String>] [-Tags <String[]>] [-TagsMethod <String>] [-Group <String>] [-ScriptType <String>]
[-Script <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

The Set-LMPropertysource function modifies an existing property source in LogicMonitor.

Terminal window
Set-LMPropertysource -Id 123 -NewName "UpdatedSource" -Description "New description" -Tags @("prod", "windows")
Updates the property source with new name, description, and tags.

Specifies the ID of the property source to modify.

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

Specifies the current name of the property source.

Type: String
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the new name for the property source.

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

Specifies the description for the property source.

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

Specifies the applies to expression for the property source.

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

Specifies technical notes for the property source.

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

Specifies an array of tags to associate with the property source.

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

Specifies how to handle tags. Valid values: “Add” (append to existing), “Refresh” (replace existing).

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Refresh
Accept pipeline input: False
Accept wildcard characters: False

Specifies the group for the property source.

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

Specifies the script type. Valid values: “embed”, “powerShell”.

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

Specifies the script content.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Returns a LogicMonitor.Propertysource object containing the updated configuration.

Section titled “Returns a LogicMonitor.Propertysource object containing the updated configuration.”

This function requires a valid LogicMonitor API authentication.