list_resource_groups
List all resource groups in LogicMonitor to browse organizational folders, find group IDs, and understand hierarchy for monitoring management.
Instructions
List all resource/device groups (folders) in LogicMonitor (LM) monitoring.
Returns: Array of groups with: id, name, parentId, full path, description, number of resources/devices, number of subgroups, custom properties.
What are groups: Organizational folders for resources/devices, like directories in a file system. Used to organize by location, environment, customer, or any logical structure.
When to use:
Browse resource/device organization
Find group IDs for resource/device creation/assignment
Understand resource/device hierarchy
Get group IDs for group-level operations (properties, SDT)
Common use cases:
Geographic: "US-West", "EU-Central", "APAC"
Environment: "Production", "Staging", "Development"
Customer: "Customer-A", "Customer-B" (for MSPs)
Function: "Web Servers", "Database Servers", "Network resources/Devices"
Common filter patterns:
By name: filter:"name~*Production*"
Root groups: filter:"parentId:1"
Non-empty: filter:"numOfDirectDevices>0"
Groups inherit properties: Custom properties set on group are inherited by all resource/device in that group (useful for credentials, location tags).
Important: A negative "total" value in the response indicates incomplete results. Use pagination (size/offset parameters) or set autoPaginate: true to retrieve all items.
Related tools: "get_resource_group" (details), "create_resource_group" (create new), "list_resource_group_properties" (group properties).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Number of results per page (default: 50, max: 1000). | |
| offset | No | Starting offset for pagination (default: 0). Use this to skip a specific number of results. | |
| autoPaginate | No | Automatically fetch all pages (default: false). When true, fetches all results across multiple pages. When false, returns only the requested page. Use false for large result sets to avoid long response times. | |
| filter | No | Filter expression using LogicMonitor query syntax. Examples: name:*prod*, displayName~*server*, id>100, hostStatus:normal. Available operators: : (equals), ~ (includes), !: (not equals), !~ (not includes), >: (greater than or equals), <: (less than or equals), > (greater than), < (less than). Multiple conditions: Use comma (,) for AND, use || for OR. Do NOT use &&. | |
| fields | No | Comma-separated list of fields to include in response. Examples: "id,displayName,hostStatus" or use "*" for all fields. Omit this parameter to receive a curated set of commonly used fields. |