I would like to learn more about how can I create a location under the Locations node and set its address field through Zendmd. I have a working java code that does that using RPC calls, but RPC calls are too slow compared to Zendmd. I would like to have the ability to create the new location and settings its address attribute same as I would normally do it from the Zenoss interface. I checked dmd.Locations but there was nothing that seemed relevant to my usage.
I tried using the following:
This has worked perfectly with me, but I could not find an overloaded method that allows me to set the address field for the location I'm adding
Any help anyone?
loc = dmd.getDmdRoot("Locations").createOrganizer("MyLocation")
loc.setAddress("123 My Rd, MyTown, ZZ")
Wow! this was exactly what I needed. Thanks a lot.
Follow Us On Twitter »
||Latest from the Zenoss Blog »||Community||Products||Services||Customers||About Us|
Copyright © 2005-2011 Zenoss, Inc.