8 years ago
Get all devices in all sub device groups via LogicMonitor REST API
Hi,
I am trying to use the LogicMonitor REST API get a list of allof the devices in a given device group, including all devices in all sub groups below in the hierarchy.
I have tried using the /device/groups/{id}/devices API but it just seems to return the devices in that immediate device group. This behaviour seems contrary to the /device/groups/{id}/alerts and /device/groups/{id}/sdts methods which do work with any sub groups below.
This was previously possible via the getHosts RPC API method. I believe it is still possible but we are looking to migrate away from the RPC API.
Can someone please advise on a solution for this issue?