Unable to render embedded object: File (Dark logo transperant background.png) not found.
You are viewing an old version of this content. View the current version.
Compare with Current View Version History
Version 1 Next »
Requires Authentication?
Yes
Response Formats
json
HTTP Methods
GET
Returns a list of all Event Rule Sets configuration data.
http://{host}/api/2.0/event_rule_sets/.format
http://44.235.52.211/api/2.0/event_rule_sets/.json
[ { "EventRuleSet": { "id": 1, "title": "Default", "modified": "1611142282208", "created": "1611142282208", "EventRuleSetEntry": [ { "id": 1, "event_rule_id": 1, "threshold": 1, "event_severity_id": 1, "is_record_enabled": 0 } ] } }, { "EventRuleSet": { "id": 2, "title": "Default_1", "modified": "1611142282208", "created": "1611142282208", "EventRuleSetEntry": [] } } ]
Returns a detailed single specific Event Rule Set configuration data.
http://{host}/api/2.0/event_rule_sets/{id}/.format
Parameter
Data Type
Description
id(required)
integer
The ID if the desired Event Rule Set to be viewed.
http://44.235.52.211/api/2.0/event_rule_sets/2/.json
{ "EventRuleSet": { "id": 1, "title": "Default", "modified": "1611142282208", "created": "1611142282208", "EventRuleSetEntry": [ { "id": 1, "event_rule_id": 1, "threshold": 1, "event_severity_id": 1, "is_record_enabled": 0 } ] } }
POST
Adds a new Event Rule Set.
Body
{ "EventRuleSet": { "title": "EventRuleSet_NEW", "EventRuleSetEntry": [ { "event_rule_id": "98", "threshold": "2", "event_severity_id": "8", "is_record_enabled": "0" } ] } }
Response
{ "EventRuleSet": { "id": 3, "title": "EventRuleSet_NEW", "modified": "1619435943662", "created": "1619435943660", "EventRuleSetEntry": [ { "id": 382, "event_rule_id": 98, "threshold": 2, "event_severity_id": 8, "is_record_enabled": 0 } ] } }
Duplicates a single specific Event Rule Set into a new one, preserving all configuration except the title.
The ID if the desired Event Rule Set to be copied.
http://44.235.52.211/api/2.0/event_rule_sets/3/.json
{ "EventRuleSet": { "id": 4, "title": "EventRuleSet_NEW_1", "modified": "1619435993282", "created": "1619435993281", "EventRuleSetEntry": [ { "id": 383, "event_rule_id": 98, "threshold": 2, "event_severity_id": 8, "is_record_enabled": 0 } ] } }
PUT
Updates a sngle specific Event Rule Set.
The ID if the desired Event Rule Set to be updated.
{ "EventRuleSet": { "title": "EventRuleSet_EDIT", "EventRuleSetEntry": [ { "event_rule_id": "98", "threshold": "2", "event_severity_id": "4", "is_record_enabled": "0" } ] } }
{ "EventRuleSet": { "id": 3, "title": "EventRuleSet_EDIT", "modified": "1619436061919", "created": "1619435943660", "EventRuleSetEntry": [ { "id": 382, "event_rule_id": 98, "threshold": 2, "event_severity_id": 4, "is_record_enabled": 0 } ] } }
DELETE
Deletes a single specific Event Rule Set.
The ID if the desired Event Rule Set to be deleted.
{ "success": true }