Set-LMOpsNote
Syntax
Set-LMOpsNote [-Id] <String> [[-Note] <String>] [[-NoteDate] <DateTime>] [[-Tags] <String[]>] [-ClearTags] [[-DeviceGroupIds] <String[]>] [[-WebsiteIds] <String[]>] [[-DeviceIds] <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMOpsNote function modifies an existing operations note in LogicMonitor.
Examples
Example 1
Set-LMOpsNote -Id 123 -Note "Updated information" -Tags @("maintenance", "planned")Updates the operations note with ID 123 with new content and tags.
Parameters
-Id
Specifies the ID of the operations note to modify.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Note
Specifies the new content for the note.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NoteDate
Specifies the date and time for the note.
Type: DateTimeParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Tags
Specifies an array of tags to associate with the note.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ClearTags
Indicates whether to clear all existing tags.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-DeviceGroupIds
Specifies an array of device group IDs to associate with the note.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WebsiteIds
Specifies an array of website IDs to associate with the note.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DeviceIds
Specifies an array of device IDs to associate with the note.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 7Default 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
You can pipe objects containing Id properties to this function.
Outputs
Returns the response from the API containing the updated operations note information.
Notes
This function requires a valid LogicMonitor API authentication.