New-LMDashboardGroup
Syntax
GroupId
New-LMDashboardGroup -Name <String> [-Description <String>] [-WidgetTokens <Hashtable>] -ParentGroupId <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
GroupName
New-LMDashboardGroup -Name <String> [-Description <String>] [-WidgetTokens <Hashtable>] -ParentGroupName <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The New-LMDashboardGroup function creates a new dashboard group in LogicMonitor. It can be created under a parent group specified by either ID or name.
Examples
Example 1
#Create dashboard group using parent IDNew-LMDashboardGroup -Name "Operations" -Description "Operations dashboards" -ParentGroupId 123
Example 2
#Create dashboard group using parent nameNew-LMDashboardGroup -Name "Operations" -Description "Operations dashboards" -ParentGroupName "Root"
Parameters
-Name
The name of the dashboard group. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Description
The description of the dashboard group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WidgetTokens
A hashtable containing widget tokens for the dashboard group.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ParentGroupId
The ID of the parent group. Required for GroupId parameter set.
Type: Int32Parameter Sets: GroupIdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-ParentGroupName
The name of the parent group. Required for GroupName parameter set.
Type: StringParameter Sets: GroupNameAliases:
Required: TruePosition: 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. You cannot pipe objects to this command.
Outputs
Returns the created dashboard group object.
Notes
You must run Connect-LMAccount before running this command.