Skip navigation
1725 Views 2 Replies Latest reply: Jan 20, 2012 10:29 AM by Mouhammed Soueidane RSS
Mouhammed Soueidane Rank: White Belt 51 posts since
Dec 12, 2011
Currently Being Moderated

Jan 20, 2012 7:44 AM

Create Locations with Zendmd with Address attribute

Dear Guys,
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:
dmd.getDmdRoot("Locations").createOrganizer(locationName)

commit()

 

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?

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points