Set-LMWebsiteGroup
Syntax
Id-ParentGroupId (Default)
Set-LMWebsiteGroup -Id <String> [-NewName <String>] [-Description <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-ParentGroupId <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Id-ParentGroupName
Set-LMWebsiteGroup -Id <String> [-NewName <String>] [-Description <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-ParentGroupName <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name-ParentGroupName
Set-LMWebsiteGroup -Name <String> [-NewName <String>] [-Description <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-ParentGroupName <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name-ParentGroupId
Set-LMWebsiteGroup -Name <String> [-NewName <String>] [-Description <String>] [-Properties <Hashtable>] [-PropertiesMethod <String>] [-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] [-ParentGroupId <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMWebsiteGroup function modifies an existing website group in LogicMonitor.
Examples
Example 1
Set-LMWebsiteGroup -Id 123 -NewName "Updated Group" -Description "New description" -ParentGroupId 456Updates the website group with new name, description, and parent group.
Parameters
-Id
Specifies the ID of the website group to modify.
Type: StringParameter Sets: Id-ParentGroupId, Id-ParentGroupNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Name
Specifies the current name of the website group.
Type: StringParameter Sets: Name-ParentGroupName, Name-ParentGroupIdAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NewName
Specifies the new name for the website group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Description
Specifies the description for the website group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Properties
Specifies a hashtable of custom properties for the website group.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-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
-DisableAlerting
Indicates whether to disable alerting for the website group.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-StopMonitoring
Indicates whether to stop monitoring the website group.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ParentGroupId
Specifies the ID of the parent group.
Type: Int32Parameter Sets: Id-ParentGroupId, Name-ParentGroupIdAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ParentGroupName
Specifies the name of the parent group.
Type: StringParameter Sets: Id-ParentGroupName, Name-ParentGroupNameAliases:
Required: FalsePosition: NamedDefault 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
None.
Outputs
Returns a LogicMonitor.WebsiteGroup object containing the updated configuration.
Notes
This function requires a valid LogicMonitor API authentication.