Returns a paginated list of all device groups in the enterprise. Device groups organize devices into logical collections by location, use case, or deployment stage, and serve as the primary unit for policy assignment, app deployment, and bulk commands.
Common Use Cases
Discovering group IDs for downstream operations; auditing group structure; populating group selectors in custom tools; confirming a group exists before assigning devices or Blueprints.
Best Practices
Use the name query parameter to filter instead of fetching all groups; cache group IDs for use in commands and policy calls; paginate with limit and offset for large enterprises.
Security
esper_cloud_api_apiKey
- Mock serverhttps://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/devicegroup/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/enterprise/{enterprise_id}/devicegroup/
curl -i -X GET \
'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/devicegroup/?name=string&limit=20&offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "count": 0, "next": "string", "previous": "string", "results": [ { … } ] }