Skip to content

Get-LMDeviceGroupGroups

Syntax

Description

The Get-LMDeviceGroupGroups function retrieves all subgroups that belong to a specified device group in LogicMonitor. The parent group can be identified by either ID or name, and the results can be filtered.

Examples

Example 1

Terminal window
#Retrieve subgroups by parent group ID
Get-LMDeviceGroupGroups -Id 123

Example 2

Terminal window
#Retrieve filtered subgroups by parent group name
Get-LMDeviceGroupGroups -Name "Production" -Filter $filterObject

Parameters

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 LogicMonitor.DeviceGroup objects.

Notes

You must run Connect-LMAccount before running this command.