DX NetOps

Expand all | Collapse all

Custom Event via REST API

Jump to Best Answer
  • 1.  Custom Event via REST API

    Posted 07-28-2015 04:49 AM

    Hi Spectrum community,


    i have a question about creating a custom event via the REST API.

    There is a new created event of type 0xffffXXXX.


    If i create an event using this event-id via the vnm shell then it works, but it doesn't work via the REST API:




    If i choose any CA default events it works fine via the REST.


    Is there any additional configuration on the Spectrum / Oneclick side which i need to do.

    The Event format file do exist on the Oneclick / Spectrum servers.


    Thanks in advance!

    Best regards,

  • 2.  Re: Custom Event via REST API
    Best Answer

    Posted 07-28-2015 07:39 AM

    The RestAPI converts the event codes from Hexadecimal to integer in Java. In Java, an integer can have a maximum value of 2,147,483,647 (signed int 32 bit). If a user wants to convert an event code in the custom event ID range like 0xffff0002, the conversion results into a decimal value of 4,294,901,762 which is greater than the MAX integer value in JAVA.


    That means the RestAPI will not work for events whose event codes are greater than 0x7fffffff.


    Please reference the following enhancement request posted to the Ideas portal:


    RESTful API supports 64bit data values