DX NetOps

 View Only
  • 1.  Is it possible to use Spectrum's rest api to add events to a southbound gateway?

    Posted Jul 07, 2017 04:16 PM

    This would make the integration with another application easier and hopefully smoother. Can the southbound gateway EventAdmin model take input from an API post events call, or some other method , the same way it does from an SNMP trap?

    Thanx

    Tim



  • 2.  Re: Is it possible to use Spectrum's rest api to add events to a southbound gateway?

    Broadcom Employee
    Posted Jul 10, 2017 02:56 AM

    Hi Tim,

    I believe you can just use Restful API to post event (create event) on the EventAdmin model. 

    https://docops.ca.com/ca-spectrum/10-2-1/en/programming/web-services-api-reference/how-to-use-the-ca-spectrum-web-servic… 

    Can you try and verify?



  • 3.  Re: Is it possible to use Spectrum's rest api to add events to a southbound gateway?
    Best Answer

    Posted Jul 10, 2017 08:40 AM

    Well I tried that before posting the question and it didn't work. After some more searching I discovered that the problem is in trying to use the typical custom event codes; 0xfff00000 or greater. After modifying the event to 0x7fffffff all works as expected.

    Here's a good explanation of why it didn't work.

    Custom Event via REST API 

     

    Thanks for the response

    Tim