Events Policy
|
Description |
Accesses events policy in NEO. There are 29 event types in NEO |
|||||||||||
|
Request URL |
/neo/app/event_policy |
|||||||||||
|
Main Operations |
|
|||||||||||
|
Description |
Retrieved all events policies data in NEO |
|||||||||||
|
Request URL |
GET /neo/app/event_policy |
|||||||||||
|
Request Data |
N/A |
|||||||||||
Response:
[
{
"Category": "Application",
"SubCategory": "General",
"ActiveConditions": 1,
"MutuallyExclusiveSets": [["1048.1",
"1014.1"]],
"InstanceID": "1048",
"EventType": "Device Connection Restored",
"Conditions": [{{
"Task": null,
"Severity": "Info",
"InstanceID": "1048.1",
"Overrides": null,
"Value": "",
"Filter": null,
"Operator": "exists",
"Trigger": "Device Connection Restored",
"Mail": null,
"Description": "Device connection restored",
"OverriddenBy": null,
"Attribute": "APP Event ID",
"ValueType": "str",
"Editable": false,
"Syslog": false,
"CorrectiveAction": "", "TTL": 0,
"Active": true,
"Message": "Device connection restored",
"MellanoxCare": false
}
}],
Get Event Policy
|
Description |
Retrieves data for specific events policy in NEO |
|||||||||||
|
Request URL |
GET /neo/app/event_policy/<event_Instance_ID> |
|||||||||||
|
Request Data |
N/A |
|||||||||||
Response:
{
"Category": "Device",
"SubCategory": "General",
"ActiveConditions": 1,
"InstanceID": "3008",
"EventType": "Test Trap Received",
"Conditions": [
{
"Severity": "Info",
"InstanceID": "3008.1",
"Attribute": "Trap ID",
"ValueType": "str",
"Editable": false,
"Value": "",
"Operator": "exists",
"Trigger": "Test Trap",
"Active": true,
"Mail": false,
"Message": "A test trap ordered by the system administrator"
"Description": "A test trap ordered by the system administrator"
"MellanoxCare":true}]
},
MellanoxCare" attribute can only be used if Mellanox Care feature is enabled.
True=enable, false=disable
Update Event Policy
|
Description |
Updated a specific event policy in NEO |
|||||||||||
|
Request URL |
PUT /neo/app/event_policy/<event_Instance_ID> |
|||||||||||
|
Response |
N/A |
|||||||||||
|
Status Codes |
Note: status code 400 BAD REQUEST means that Mellanox Care is not Enabled. |
|||||||||||
Request Data:
[
{
"Category": "Device",
"SubCategory": "Networking",
"ActiveConditions": 3,
"InstanceID": "4002",
"EventType": "Port Out Errors",
"Conditions": [
{
"Task": null,
"Severity": "Warning",
"OverriddenBy": null,
"InstanceID": "4002.1",
"Attribute": "Out Errors",
"Overrides": null,
"Editable": true,
"Value": "5-10",
"Filter": null,
"Operator": "between",
"Trigger": "Out Errors",
"Active": true,
"Mail": null,
"Description": "OutErrors counter rate threshold exceeded.",
"ValueType": "range"
"MellanoxCare":true}]a
},
"MellanoxCare" attribute can only be used if Mellanox Care feature is enabled.
True=enable, False=disable