I have a few hundred URL sensors that need their IP changed, however the URLs are different between the sensor.
Instead of trying to go through all of these sensors by hand, I'm trying to use the API to locate them, programatically change the URL, and submit the changes back up through the API, however I seem to be able to obtain basically every bit of information about the sensor, except for it's monitored URL.
The URL stub I'm currently using to pull the list of sensors is :: /api/table.json?content=sensor&output=json&columns=objid,probe,group,device,sensor,status,message,value_,host,baselink,type,basetype
Not sure what additional columns are available that would make this possible.
After spending a few hours going back and forth between the documentation, trial and error, and various other online searches, I was finally able to locate a very small blurb that hinted at what I was looking for. And gave me enough direction to fill in the rest of the blanks.
The API URLstubs I ended up needing are: - /api/getobjectproperty.htm?id=<sensor>&name=xmlurl&show=text - /api/getobjectproperty.htm?id=<sensor>&name=httpurl&show=text
(I tried editing this thread to put the above text in the main item and change the subject to SOLVED, however after 3 attempts, all resulting in an error page, I gave up)
Feb, 2015 - Permalink