What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

API to list all devices in certain groups

Votes:

0

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.

api device group prtg

Created on Nov 30, 2021 1:36:41 PM



1 Reply

Votes:

0

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: New API

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.

Created on Dec 1, 2021 9:06:04 AM by  Florian Lesage [Paessler Support]

Last change on Dec 1, 2021 9:06:59 AM by  Florian Lesage [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.