Set-LMSDT
Syntax
Section titled “Syntax”OneTime (Default)
Section titled “OneTime (Default)”Set-LMSDT -Id <String> [-Comment <String>] [-StartDate <DateTime>] [-EndDate <DateTime>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Recurring
Section titled “Recurring”Set-LMSDT -Id <String> [-Comment <String>] [-StartHour <Int32>] [-StartMinute <Int32>] [-EndHour <Int32>] [-EndMinute <Int32>] [-WeekDay <String>] [-WeekOfMonth <String>] [-DayOfMonth <Int32>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMSDT function modifies an existing SDT entry in LogicMonitor, allowing updates to both one-time and recurring schedules.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMSDT -Id 123 -StartDate "2024-01-01 00:00" -EndDate "2024-01-02 00:00" -Comment "Extended maintenance"Updates a one-time SDT entry with new dates and comment.Parameters
Section titled “Parameters”Specifies the ID of the SDT entry to modify.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Comment
Section titled “-Comment”Specifies a comment for the SDT entry.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-StartDate
Section titled “-StartDate”Specifies the start date and time for one-time SDT.
Type: DateTimeParameter Sets: OneTimeAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EndDate
Section titled “-EndDate”Specifies the end date and time for one-time SDT.
Type: DateTimeParameter Sets: OneTimeAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-StartHour
Section titled “-StartHour”Specifies the start hour (0-23) for recurring SDT.
Type: Int32Parameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-StartMinute
Section titled “-StartMinute”Specifies the start minute (0-59) for recurring SDT.
Type: Int32Parameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EndHour
Section titled “-EndHour”Specifies the end hour (0-23) for recurring SDT.
Type: Int32Parameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-EndMinute
Section titled “-EndMinute”Specifies the end minute (0-59) for recurring SDT.
Type: Int32Parameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WeekDay
Section titled “-WeekDay”Specifies the day of the week for recurring SDT.
Type: StringParameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WeekOfMonth
Section titled “-WeekOfMonth”Specifies which week of the month for recurring SDT. Valid values: “First”, “Second”, “Third”, “Fourth”, “Last”.
Type: StringParameter Sets: RecurringAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DayOfMonth
Section titled “-DayOfMonth”Specifies the day of the month (1-31) for recurring SDT.
Type: Int32Parameter Sets: RecurringAliases:
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 the response from the API containing the updated SDT configuration.
Section titled “Returns the response from the API containing the updated SDT configuration.”This function requires a valid LogicMonitor API authentication.