Skip to content

Get-LMDeviceGroupGroups

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.

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

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.