Set-LMWebsite
Syntax
Section titled “Syntax”Website (Default)
Section titled “Website (Default)”Set-LMWebsite -Id <string> [-Name <string>] [-IsInternal <bool>] [-Description <string>] [-DisableAlerting <bool>] [-StopMonitoring <bool>] [-UseDefaultAlertSetting <bool>] [-UseDefaultLocationSetting <bool>] [-TriggerSSLStatusAlert <bool>] [-TriggerSSLExpirationAlert <bool>] [-GroupId <string>] [-WebsiteDomain <string>] [-HttpType <string>] [-SSLAlertThresholds <string[]>] [-PageLoadAlertTimeInMS <int>] [-FailedCount <int>] [-OverallAlertLevel <string>] [-IndividualAlertLevel <string>] [-Properties <hashtable>] [-PropertiesMethod <string>] [-PollingInterval <int>] [-WebsiteSteps <Object[]>] [-TestLocationAll <bool>] [-TestLocationCollectorIds <int[]>] [-TestLocationSmgIds <int[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMWebsite -Id <string> [-Name <string>] [-IsInternal <bool>] [-Description <string>] [-DisableAlerting <bool>] [-StopMonitoring <bool>] [-UseDefaultAlertSetting <bool>] [-UseDefaultLocationSetting <bool>] [-GroupId <string>] [-PingAddress <string>] [-PingCount <int>] [-PingTimeout <int>] [-PingPercentNotReceived <int>] [-FailedCount <int>] [-OverallAlertLevel <string>] [-IndividualAlertLevel <string>] [-Properties <hashtable>] [-PropertiesMethod <string>] [-PollingInterval <int>] [-TestLocationAll <bool>] [-TestLocationCollectorIds <int[]>] [-TestLocationSmgIds <int[]>] [-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”-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies the description for the website.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DisableAlerting
Section titled “-DisableAlerting”Indicates whether to disable alerting for the website.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-FailedCount
Section titled “-FailedCount”Number of consecutive failed checks before alerting. Valid values: 1-10, 30, or 60.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-GroupId
Section titled “-GroupId”Specifies the group ID for the website.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HttpType
Section titled “-HttpType”HTTP scheme for website checks. Valid values: http or https.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the ID of the website to modify.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-IndividualAlertLevel
Section titled “-IndividualAlertLevel”Alert severity for individual step or probe failures. Valid values: warn, error, critical.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-IsInternal
Section titled “-IsInternal”Indicates whether the website is internal.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the name for the website.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-OverallAlertLevel
Section titled “-OverallAlertLevel”Alert severity for overall website or ping check status. Valid values: warn, error, critical.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PageLoadAlertTimeInMS
Section titled “-PageLoadAlertTimeInMS”Maximum acceptable page load time in milliseconds before a website check raises an alert.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PingAddress
Section titled “-PingAddress”Target hostname or IP address for Ping website checks (internal or external ping parameter set).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Ping Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PingCount
Section titled “-PingCount”Number of ICMP echo requests per poll for ping checks. Valid values: 5, 10, 15, 20, 30, 50.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Ping Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PingPercentNotReceived
Section titled “-PingPercentNotReceived”Packet loss percentage threshold for ping checks. Valid values: 10 through 100 in tens.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Ping Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PingTimeout
Section titled “-PingTimeout”Timeout in milliseconds for each ping request in ping checks.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Ping Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PollingInterval
Section titled “-PollingInterval”Specifies the polling interval. Valid values: 1-10, 30, 60.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Properties
Section titled “-Properties”Specifies a hashtable of custom properties for the website.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PropertiesMethod
Section titled “-PropertiesMethod”Specifies how to handle properties. Valid values: “Add”, “Replace”, “Refresh”.
Type: System.StringDefaultValue: ReplaceSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SSLAlertThresholds
Section titled “-SSLAlertThresholds”Specifies the SSL alert thresholds for the website check. This is an alias for the alertExpr parameter.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases:- alertExprParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StopMonitoring
Section titled “-StopMonitoring”Indicates whether to stop monitoring the website.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TestLocationAll
Section titled “-TestLocationAll”Indicates whether to test from all locations. Cannot be used with TestLocationCollectorIds or TestLocationSmgIds.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-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: System.Int32[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-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: System.Int32[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TriggerSSLExpirationAlert
Section titled “-TriggerSSLExpirationAlert”Indicates whether to trigger SSL expiration alerts.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TriggerSSLStatusAlert
Section titled “-TriggerSSLStatusAlert”Indicates whether to trigger SSL status alerts.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-UseDefaultAlertSetting
Section titled “-UseDefaultAlertSetting”Indicates whether to use default alert settings.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-UseDefaultLocationSetting
Section titled “-UseDefaultLocationSetting”Indicates whether to use default location settings.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WebsiteDomain
Section titled “-WebsiteDomain”Domain or URL host portion for Website checks (HTTP/HTTPS monitoring).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WebsiteSteps
Section titled “-WebsiteSteps”Optional scripted steps for multi-step website checks (website parameter set).
Type: System.Object[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Website Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.