I am trying to remotely manage my devices and locations associated with them.  
It looks like rest calls only return the HTML that is provided to a browser, as 
I've tried specifying this such as Accept: application/xml, to ask for xml data 
back.  Perhaps I'm looking in the wrong place, is there a url I can specify for 
getting back data in xml or json on objects?

Anyway, I've moved on to xmlrpc.  I can connect and get an id of a location 
using xmlrpc and calling getId.  However, I can't seem to find a way to 
directly get the current address assigned to that location.

Looking through the API, I see there is a setAddress method, but I cannot find 
a getter for retrieving that information.  Or, even a getter for retrieving all 
the properties of that object.

I did find I can use getGeomapData and then pull the first part of that array 
out which is the address.  Is this the intended behavior?  Or, am I overlooking 
something that would be a more direct way to get at that property?

However, I would prefer to use rest, if I can obtain the same sort of 
information in something I can easily parse, such as xml or json.  Is there any 
alternative URL schema I can hit, besides basically looking at the html ui and 
mimicking those urls?

Thanks for any tips or suggestions.

Dusty Doris




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=30212#30212

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to