Forum Discussion
Hi,
Alerts & SDTs roll up (in the UI and the API) - you'll see alerts for a subgroup under it's parent group Alerts & SDT Tabs, but devices don't roll up in this same manner. So thats why the /device/groups/{id}/alerts and /device/groups/{id}/sdts resources return alerts and sdts for subgroups, while the /device/groups/{id}/devices resource does not. You can get all devices under a group and it's subgroups by using the /device/groups/{id} resource to get subgroups, and iterating through those subgroups & the parent group to get their devices - this can be done with a simple script.
While it would be difficult to add the subgroup devices to /device/groups/{id}/devices resource in a RESTful manner, I'll keep this use case in mind as a feature request & see if we can come up with something clever.
Thanks,
Sarah
Related Content
- 6 months ago
- 9 months ago
- 5 months ago