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

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