Skip to content

New-LMWebsiteGroup

Terminal window
New-LMWebsiteGroup -Name <String> [-Description <String>] [-Properties <Hashtable>]
[-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] -ParentGroupId <Int32>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
New-LMWebsiteGroup -Name <String> [-Description <String>] [-Properties <Hashtable>]
[-DisableAlerting <Boolean>] [-StopMonitoring <Boolean>] -ParentGroupName <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

The New-LMWebsiteGroup function creates a new website group in LogicMonitor. It allows you to specify the name, description, properties, and parent group of the website group.

Terminal window
New-LMWebsiteGroup -Name "MyWebsiteGroup" -Description "This is my website group" -ParentGroupId 1234

This example creates a new website group with the name “MyWebsiteGroup”, description “This is my website group”, and parent group ID 1234.

Terminal window
New-LMWebsiteGroup -Name "MyWebsiteGroup" -Description "This is my website group" -ParentGroupName "ParentGroup"

This example creates a new website group with the name “MyWebsiteGroup”, description “This is my website group”, and parent group name “ParentGroup”.

The name of the website group. This parameter is mandatory.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The description of the website group.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

A hashtable of custom properties for the website group.

Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies whether to disable alerting for the website group. By default, alerting is enabled.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Specifies whether to stop monitoring the website group. By default, monitoring is not stopped.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

The ID of the parent group. This parameter is mandatory if the ParentGroupName parameter is not specified.

Type: Int32
Parameter Sets: GroupId
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

The name of the parent group. This parameter is mandatory if the ParentGroupId parameter is not specified.

Type: String
Parameter Sets: GroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

None. You cannot pipe objects to this command.

Section titled “None. You cannot pipe objects to this command.”

You must run Connect-LMAccount before running this command.