How to create the same Generic Event, SoftTriggers and rest all which we create rule through the NXClient through API
In ProgressHello,
I m trying to create this same scenario through API .But not able to do.As i need to have the logs through accesscontrol system and need them in the NX Client.
And they should do the particular event.
Screenshot attached below.
-
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.
Please sign in to leave a comment.
Comments
1 comment