Use this method to create an event filter for a specific subscription.
lxc-admin
lxc-supervisor
lxc-security-admin
lxc-sysmgr
Authentication with user name and password is required.
POST https://{management_server_IP}/events/notifications/{pusher_type}/subscriptions/{subscription_ID}/filters
{pusher_type} is the type of push notification service. This can be one of the following values.
AndroidPusher. Google device push service
iOSPusher. Apple device push service
WebSocketPusher. WebSocket service
{subscription_ID} is the UID of the subscription to be retrieved. To obtain the subscription UID, use the GET /events/notifications/subscriptions method.
None
Attributes | Required / Optional | Type | Definition | |||
---|---|---|---|---|---|---|
eventFilter | Required | Array of objects | Information about the types of events to filter | |||
filter | Required | Object | Information about each event filter | |||
categories | Required | Array of strings | Event categories. This can be one of the following values.
|
|||
componentIDs | Required | Array of strings | List of component IDs. If empty, all components are accepted. | |||
sourceIDs | Required | Array of strings | List of source IDs. If empty, all sources are accepted.. | |||
typeSeverity | Required | Array of objects | Event severity and type If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter is forwarded. |
|||
severity | Required | String | Event severity. This can be one of the following values.
|
|||
type | Required | String | Event type. This can be one of the following values.
|
|||
eventFilterDescription | Required | String | Event filter description | |||
eventFilterName | Required | String | Event filter name | |||
matchEveryCoreEvent | Optional | Boolean | Indicates whether this event filter accepts all core events | |||
matchEverySystem | Optional | Boolean | Indicates whether this event filter must match every event from every managed device | |||
matchEverything | Optional | Boolean | Indicates whether this event filter matches all events |
{
"eventFilterName": "example2",
"eventFilterDescription": "Description",
"eventFilter": {
"filter": {
"componentIDs": ["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"500C0FF286F98000"],
"sourceIDs": ["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"500C0FF286F98000"],
"typeSeverity": [{
"severity": "fatal",
"type": "all"
},
...,
{
"severity": "informational",
"type": "audit"
}],
"categories": ["WARRANTY",
"GENERAL"]
}
},
"matchEverySystem": false,
"matchEveryCoreEvent": false
}
Code | Description |
---|---|
200 | OK |
400 | Bad request |
401 | Unauthorized. |
500 | Internal server error |
None