POST /events/predefinedFilters
Use this method to create a predefined event filter.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/events/predefinedFilters
Query parameters
None
Response body
Attributes | Type | Definition | |||
---|---|---|---|---|---|
eventFilter | Array of objects | Iist of predefined and custom event filters | |||
filter | Object | Information about the types of events to filter | |||
categories | Array of strings | Event categories. This can be one of the following values.
| |||
componentIDs | Array of strings | List of component IDs. If empty, all components are accepted. | |||
sourceIDs | Array of strings | List of source IDs. If empty, all sources are accepted. | |||
typeSeverity | Array of objects | Event severity and type If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter is forwarded. | |||
severity | String | Event severity. This can be one of the following values.
| |||
type | String | Event type. This can be one of the following values.
| |||
eventFilterDescription | String | Event filter description | |||
eventFilterName | String | Event filter name | |||
matchEveryCoreEvent | Boolean | Indicates whether this event filter accepts all core events | |||
matchEverySystem | Boolean | Indicates whether this event filter must match every event from every managed device | |||
matchEverything | Boolean | Indicates whether this event filter matches all events |
The following example creates a predefined event filter.
{
"action": "edit",
"eventFilter": {
"filter": {
"componentIDs": [],
"sourceIDs": ["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"],
"typeSeverity": [
{
"severity": "fatal",
"type": "all"
},
...,
{
"severity": "informational",
"type": "audit"
}
],
"categories": [
"WARRANTY",
"GENERAL"
]
}
},
"eventFilterDescription": "Fatal and informational events",
"eventFilterName": "FatalInfoEvents ",
"matchEveryCoreEvent": false,
"matchEverySystem": false
}
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
None
Give documentation feedback