Hi,
I'm looking for some guidance on how to structure an API to list all device names in several groups - so list all devices located in Group ID 25346, 25367, 25372 etc. There will be approximately 20 groups.
Can be in the format can of either json, xml, csv etc.
Thanks in advance.
Article Comments
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.
Dec, 2021 - Permalink
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:
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.
Dec, 2021 - Permalink