Set-LMDeviceGroup
Syntax
Section titled “Syntax”Id-ParentGroupId (Default)
Section titled “Id-ParentGroupId (Default)”Set-LMDeviceGroup -Id <string> [-NewName <string>] [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-PropertiesMethod <string>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-ParentGroupId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Id-ParentGroupName
Section titled “Id-ParentGroupName”Set-LMDeviceGroup -Id <string> [-NewName <string>] [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-PropertiesMethod <string>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-ParentGroupName <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Name-ParentGroupName
Section titled “Name-ParentGroupName”Set-LMDeviceGroup -Name <string> [-NewName <string>] [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-PropertiesMethod <string>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-ParentGroupName <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Name-ParentGroupId
Section titled “Name-ParentGroupId”Set-LMDeviceGroup -Name <string> [-NewName <string>] [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-PropertiesMethod <string>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-ParentGroupId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMDeviceGroup function modifies an existing device group in LogicMonitor, allowing updates to its name, description, properties, and various other settings.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Set-LMDeviceGroup -Id 123 -NewName "Updated Group" -Description "New description"Updates the device group with ID 123 with a new name and description.
Parameters
Section titled “Parameters”-AppliesTo
Section titled “-AppliesTo”Specifies the applies to expression for the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-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: ''-DefaultAutoBalancedCollectorGroupId
Section titled “-DefaultAutoBalancedCollectorGroupId”Specifies the default auto-balanced collector group ID for the device group.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultCollectorGroupId
Section titled “-DefaultCollectorGroupId”Specifies the default collector group ID for the device group.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultCollectorId
Section titled “-DefaultCollectorId”Specifies the default collector ID for the device group.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies the new description for the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DisableAlerting
Section titled “-DisableAlerting”Specifies whether to disable alerting for the device group.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EnableNetFlow
Section titled “-EnableNetFlow”Specifies whether to enable NetFlow for the device group.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Extra
Section titled “-Extra”Specifies a object of extra properties for the device group. Used for LM Cloud resource groups
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the ID of the device group to modify.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-ParentGroupName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-ParentGroupId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the current name of the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-ParentGroupName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-ParentGroupId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NewName
Section titled “-NewName”Specifies the new name for the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ParentGroupId
Section titled “-ParentGroupId”Specifies the ID of the parent group.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-ParentGroupId Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-ParentGroupId Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ParentGroupName
Section titled “-ParentGroupName”Specifies the name of the parent group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-ParentGroupName Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-ParentGroupName Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Properties
Section titled “-Properties”Specifies a hashtable of custom properties for the device group.
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 existing properties. Valid values are “Add”, “Replace”, or “Refresh”. Default is “Replace”.
Type: System.StringDefaultValue: ReplaceSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) 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.