Set-LMWebsite
Syntax
Section titled “Syntax”Website (Default)
Section titled “Website (Default)”Set-LMWebsite -Id <String> [-Name <String>] [-IsInternal <Boolean>] [-Description <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-TriggerSSLStatusAlert <Boolean>] [-TriggerSSLExpirationAlert <Boolean>] [-GroupId <String>] [-WebsiteDomain <String>] [-HttpType <String>] [-SSLAlertThresholds <String[]>] [-PageLoadAlertTimeInMS <Int32>] [-FailedCount <Int32>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-PollingInterval <Int32>] [-WebsiteSteps <String[]>] [-TestLocationAll <Boolean>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMWebsite -Id <String> [-Name <String>] [-IsInternal <Boolean>] [-Description <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-GroupId <String>] [-PingAddress <String>] [-PingCount <Int32>] [-PingTimeout <Int32>] [-PingPercentNotReceived <Int32>] [-FailedCount <Int32>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-PollingInterval <Int32>] [-TestLocationAll <Boolean>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMWebsite function modifies an existing website monitoring configuration in LogicMonitor. It includes intelligent validation of test location parameters to ensure valid combinations are used.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMWebsite -Id 123 -Name "Updated Site" -Description "New description" -DisableAlerting $falseUpdates the website with new name, description, and enables alerting.Example 2
Section titled “Example 2”Set-LMWebsite -Id 123 -TestLocationAll $trueUpdates the website to test from all locations.Parameters
Section titled “Parameters”Specifies the ID of the website to modify.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: FalseSpecifies the name for the website.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-IsInternal
Section titled “-IsInternal”Indicates whether the website is internal.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”Specifies the description for the website.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DisableAlerting
Section titled “-DisableAlerting”Indicates whether to disable alerting for the website.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-StopMonitoring
Section titled “-StopMonitoring”Indicates whether to stop monitoring the website.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-UseDefaultAlertSetting
Section titled “-UseDefaultAlertSetting”Indicates whether to use default alert settings.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-UseDefaultLocationSetting
Section titled “-UseDefaultLocationSetting”Indicates whether to use default location settings.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TriggerSSLStatusAlert
Section titled “-TriggerSSLStatusAlert”Indicates whether to trigger SSL status alerts.
Type: BooleanParameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TriggerSSLExpirationAlert
Section titled “-TriggerSSLExpirationAlert”Indicates whether to trigger SSL expiration alerts.
Type: BooleanParameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-GroupId
Section titled “-GroupId”Specifies the group ID for the website.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PingAddress
Section titled “-PingAddress”Fill PingAddress Description
Type: StringParameter Sets: PingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WebsiteDomain
Section titled “-WebsiteDomain”Fill WebsiteDomain Description
Type: StringParameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HttpType
Section titled “-HttpType”Fill HttpType Description
Type: StringParameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SSLAlertThresholds
Section titled “-SSLAlertThresholds”Specifies the SSL alert thresholds for the website check. This is an alias for the alertExpr parameter.
Type: String[]Parameter Sets: WebsiteAliases: alertExpr
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PingCount
Section titled “-PingCount”Fill PingCount Description
Type: Int32Parameter Sets: PingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PingTimeout
Section titled “-PingTimeout”Fill PingTimeout Description
Type: Int32Parameter Sets: PingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PageLoadAlertTimeInMS
Section titled “-PageLoadAlertTimeInMS”Fill PageLoadAlertTimeInMS Description
Type: Int32Parameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PingPercentNotReceived
Section titled “-PingPercentNotReceived”Fill PingPercentNotReceived Description
Type: Int32Parameter Sets: PingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-FailedCount
Section titled “-FailedCount”Fill FailedCount Description
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-OverallAlertLevel
Section titled “-OverallAlertLevel”Fill OverallAlertLevel Description
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-IndividualAlertLevel
Section titled “-IndividualAlertLevel”Fill IndividualAlertLevel Description
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Properties
Section titled “-Properties”Specifies a hashtable of custom properties for the website.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PropertiesMethod
Section titled “-PropertiesMethod”Specifies how to handle properties. Valid values: “Add”, “Replace”, “Refresh”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: ReplaceAccept pipeline input: FalseAccept wildcard characters: False-PollingInterval
Section titled “-PollingInterval”Specifies the polling interval. Valid values: 1-10, 30, 60.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WebsiteSteps
Section titled “-WebsiteSteps”Fill WebsiteSteps Description
Type: String[]Parameter Sets: WebsiteAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationAll
Section titled “-TestLocationAll”Indicates whether to test from all locations. Cannot be used with TestLocationCollectorIds or TestLocationSmgIds.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationCollectorIds
Section titled “-TestLocationCollectorIds”Array of collector IDs to use for testing. Can only be used when IsInternal is true. Cannot be used with TestLocationAll or TestLocationSmgIds.
Type: Int32[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationSmgIds
Section titled “-TestLocationSmgIds”Array of collector group IDs to use for testing. Can only be used when IsInternal is false. Cannot be used with TestLocationAll or TestLocationCollectorIds. Available collector group IDs correspond to LogicMonitor regions:
- 2 = US - Washington DC
- 3 = Europe - Dublin
- 4 = US - Oregon
- 5 = Asia - Singapore
- 6 = Australia - Sydney
Type: Int32[]Parameter 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.Website object containing the updated configuration.
Section titled “Returns a LogicMonitor.Website object containing the updated configuration.”This function requires a valid LogicMonitor API authentication. It enforces strict validation rules for TestLocation parameters to prevent invalid combinations.