Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

How to create the same Generic Event, SoftTriggers and rest all which we create rule through the NXClient through API

Planned

Comments

1 comment

  • Sergey Yuldashev
    • Network Optix team

    Hello Tanaya Ghosh,

    To create a rule please use the POST /ec2/saveEventRule method in accordance with the API documentation:

    https://meta.nxvms.com/doc/developers/api-tool/ec2-saveeventrule-post

    Please note this part of the annotation:

    An example of such object can be seen in an item of the array returned by GET /ec2/getEventRules.

    I.e. the simplest way to create a new rule with the API you should first create one using the GUI, save the corresponding section of response to the /ec2/getEventRules as a template and re-use it later as a JSON body example.

    Please make sure you replace things like "id" value with the new unique strings and you follow the JSON scheme specified in the documentation.

    0

Please sign in to leave a comment.