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
#Retrieve subgroups by parent group IDGet-LMDeviceGroupGroups -Id 123
Example 2
#Retrieve filtered subgroups by parent group nameGet-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.