Quantcast
Viewing all articles
Browse latest Browse all 853

API: How to add and manage event using JSON python API

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


Viewing all articles
Browse latest Browse all 853

Trending Articles