Is it possible to retrieve all object properties, the same way we can do with: .../api/table.xml?content=sensors&columns=sensor&username=myuser&passhash=hash
The reason for the question, I am working on a project to automatically create sensors via the API when a record in another system is marked as complete and I need to compare what is currently in PRTG vs the 3rd party system (complete daily refresh as people have access to change records in PRTG).
The basic sensor GET above takes a few seconds to come back with all data (unfiltered - just a plain dump), but I have a loop after this that gets the object properties (I need host and httpurl). Calling "...api/getobjectproperty.htm?id=X&name=host&show=text" twice for each sensor object takes about 9 minutes to complete. IIS for the separate API gives up after about 8 minutes, or it gives up on memory used (2GB)
I have various other methods I can try (hangfire, IIS timeouts, stand alone calls etc...), but as PRTG can dump all the device and sensor info out so quickly, can it do the same 'dump' for object properties, even if I have to specify "&name=host" or "&name=httpurl" as 2 separate calls. 2 is a lot less than the 30,000 calls (and counting) my webmethod is currently doing against PRTG API.
Or can I get the sensor data + object properties (objid, parentid, sensorName, tags + host & httpurl) in a different way without a person being involved
Thanks
Wayne
Add comment