Hello Simon,
Thank you for your message.
Regarding what you would like to achieve, with the current API you need to execute the request for each group you desire to get the devices from. Here is the request you can use for that:
https://PRTGSERVER/api/table.json?content=devices&columns=objid,name&count=*&filter_parentid=GROUPID&username=PRTGUSER&passhash=PASSHASH
Nevertheless, with the new API which is released (in Alpha) in the version 21.4.73 (planned for today, 01.12.2021), you have the possibility to define all group IDs within a single query as illustrated below:
A Kb article will be published regarding the installation of the new application server (web UI and API).
If you have questions, do not hesitate.
Regards.
Add comment