James M
2013-05-20 15:27:30 UTC
James M [http://community.zenoss.org/people/James] created the discussion
"API: How to add and manage event using JSON python API"
To view the discussion, visit: http://community.zenoss.org/message/73277#73277
--------------------------------------------------------------
I'm trying to use JSON/Python API to create a new event
I'm using the documentation (ZenossAPIExample) to create a new event (create_event_on_device)
Up to this point it's working and I am able to create a new event,
The problem is I don't understand how to use the data returns to manage the event,
For example, the return code is:
{u'uuid': u'b8791acb-b6f9-4071-b065-9c26e36acd45', u'tid': 1, u'result': {u'msg'
: u'Created event', u'success': True}, u'action': u'EventsRouter', u'type': u'rp
c', u'method': u'add_event'}
My questions:
1. Is there any way to get the "Event ID" in the return call?
2. What is the "u'uuid'" used for?
All event actions (Acknowledge, close, add note etc..) requires the event ID and I'm trying to sync Zenoss with 3rd party events.
System:
Zenoss: 4.2.3
OS: CentOS 6.4
Any suggestions?
Thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73277#73277]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"API: How to add and manage event using JSON python API"
To view the discussion, visit: http://community.zenoss.org/message/73277#73277
--------------------------------------------------------------
I'm trying to use JSON/Python API to create a new event
I'm using the documentation (ZenossAPIExample) to create a new event (create_event_on_device)
Up to this point it's working and I am able to create a new event,
The problem is I don't understand how to use the data returns to manage the event,
For example, the return code is:
{u'uuid': u'b8791acb-b6f9-4071-b065-9c26e36acd45', u'tid': 1, u'result': {u'msg'
: u'Created event', u'success': True}, u'action': u'EventsRouter', u'type': u'rp
c', u'method': u'add_event'}
My questions:
1. Is there any way to get the "Event ID" in the return call?
2. What is the "u'uuid'" used for?
All event actions (Acknowledge, close, add note etc..) requires the event ID and I'm trying to sync Zenoss with 3rd party events.
System:
Zenoss: 4.2.3
OS: CentOS 6.4
Any suggestions?
Thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73277#73277]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]