Hi

I need to export a device list of a specific group via API command, can someone remind me the command sintax?

thanks


Article Comments

Hi,

You can use the following API to generate the desired list:

http://api/table.csv?id=objectid&columns=objid,name,host,probegroupdevice=text,status&count=*

Kind regards


Jan, 2020 - Permalink

Thanks for the reply!

I have found this API command that satisfy my needs:

server-name/api/table.xml?content=sensors&output=csvtable&columns=device,status,tags&filter_type=ping&id=2853

whre the ID is the group ID that I want to filter.

I have another question:

How can save on a local network folder the XML file created?

Thanks!


Jan, 2020 - Permalink

Hi,

Would you like to save it as XML or CSV file?

Kind regards


Jan, 2020 - Permalink

We prefer XML but the format is not important we can switch if necessary.

thanks


Jan, 2020 - Permalink

Hi,

I would ask you to change the API-Call from table.xml to table.csv. Does it save the file now?

Kind regards


Jan, 2020 - Permalink

At the moment we are just looking for the correct API syntax and we run the url directly in our browser so the file pop up from the browser winodow but the goal is to set up an automation to save somewhere the CSV file.

Is there a scheduler to do this job using API?

thanks


Jan, 2020 - Permalink

Hi,

Maybe you can work with a script which runs the api call automatically at the desired time with the help of the task scheduler of Windows.

Kind regards


Jan, 2020 - Permalink