Based on the documentation provided we can only access one content type and one column at a time when executing the API, e.g https://yourserver/api/table.xml?content=sensors&columns=sensor. The examples provided has sensors and I have learned through trial and error of devices. Is there a definition list out there that outlines what columns we can access? Also, can we access more than one column?


Article Comments

Hello,

Thank you for your message.

You will find all the available columns in the manual of the PRTG API here: https://www.paessler.com/manuals/prtg/live_multiple_object_property_status#supported_output. You can use multiples columns within your request by separating them with a coma, as illustrates below:

https://PRTGSERVER/api/table.xml?content=sensors&columns=objid,name,probe,group,favorite,lastvalue,device,downtime,downtimetime,downtimesince,uptime,uptimetime,uptimesince,knowntime,cumsince,lastcheck,lastup,lastdown,minigraph,schedule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,parentid,tags,type,active&count=*&username=PRTGUSER&passhash=PASSHASH

If you have questions, do not hesitate.

Regards.


Mar, 2022 - Permalink