Hi everyone,

How can I leverage the API in way that it also exports the folder name the device is residing in?

With the following API call I could export all devices and host information: /api/table.xml?content=devices&output=csvtable&columns=device,host&count=5000

This is perfect but I also need to know the folder it's in...

Can someone assist?

Thanks!


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Dear bennie,

that would be

/api/table.csv?content=devices&columns=group,device,host&count=5000

However, nested groups cannot be read out this way. That would require to read the whole device tree and process it via a script, using

/api/treeobjects.json

Sep, 2018 - Permalink