POST /events/exclusionfilters
Use this method to exclude events or alerts that are of no interest for managing devices and no actions need to be taken when the events or alerts are received.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/events/exclusionfilters
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | |
---|---|---|---|---|
description | Required | String | User-defined description | |
eventFilter | Required | Array of objects | Event filters. Each object that contain the following attributes.
For more information, see Filtering events. | |
name | Required | String | User defined name for the exclusion filter Note This name must be unique. | |
type | Required | String | Type of exclusion filter. This can be one of the following values.
|
The following example ignores all FQXHMCP5810I events on all devices in two specific groups.
{
"description": "Ignore all FIELDREGEXAND events from devices in specific groups",>,
"eventFilter": {
"filterType": "FIELDREGEXAND",
"fields": [{
"field": "eventID",
"value": "FQXHMCP5810I",
},
{
"field" "groupUUID",
"value": ["FFB657408BEB4161950704AB0ED3A84A","FFB657408BEB4161950704AB0ED3A84B"]
}]
},
"name": "group events",
"type": "event"
}
The following example ignores all alerts from server 65AEDE9C03B311E18A2AC4C1BD6B35B2.
{
"description": "Ignore all events from server 65AEDE9C03B311E18A2AC4C1BD6B35B2",
"eventFilter": {
"filterType": "FIELDREGEXAND",
"fields": [{
"field": "sourceID",
"value": "65AEDE9C03B311E18A2AC4C1BD6B35B2"
}]
},
"name": "65AEDE9C03B311E18A2AC4C1BD6B35B2 alerts",
"type": "activeAlert"
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
401 | Unauthorized | The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
id | String | Unique ID of the exclusion-filter |
The following example is returned if the request is successful.
{
"id": "AUG:XFT:0"
}
Give documentation feedback