Create an Event Filter Group
post
/api/event/FilterGroups
Creates a new event filter group.
The minimum required properties in the request body are:
The minimum required properties in the request body are:
- FilterGroupName
- OwnerUserID
- OwnerUserGroupID
- ParentFilterGroupID
- Filters
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
FilterGroupName: string
The event filter group name.
To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.Example:Global
-
Filters: array
Filters
List of Filters IDs
-
OwnerUserGroupID: integer
Chosen user group ownerExample:
0
-
OwnerUserID: integer
The ID of the user that owns the event filter group. This can never be an externally-authenticated transient user. 0 means it is public to all users in the owning group.Example:
0
-
ParentFilterGroupID:
ParentFilterGroupID
FilterGroupID of Parent Group, can be "root" or an int.
-
Remove: boolean
Whether to remove the filters from other event filter groups (1 for true) or not (0 for false).Example:
1
-
RestrictionFilter: string
Restriction filterExample:
Nested Schema : ParentFilterGroupID
FilterGroupID of Parent Group, can be "root" or an int.
Match One Schema
Show Source
Example:
1
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulAddOperation
The response body for a successful add operation.
-
object
type
Nested Schema : SuccessfulAddOperation
Type:
object
The response body for a successful add operation.
Show Source
-
message: string
The response message.Example:
Added record
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : type
Type:
Show Source
object
-
data: array
data
The properties of the new event filter group.
Nested Schema : eventFilterGroupsReadByID
Type:
Show Source
object
-
FilterGroupID: integer
Filter Group IDExample:
1
-
FilterGroupName: string
Filter Group NameExample:
Global
-
Filters: array
Filters
Array of filters belonging to the filter group.
-
OwnerUserGroupID: integer
Chosen user group ownerExample:
0
-
OwnerUserID: integer
The ID of the user that owns the event filter group. This can never be an externally-authenticated transient user. 0 means it is public to all users in the owning group.Example:
0
-
ParentFilterGroupID:
ParentFilterGroupID
FilterGroupID of Parent Group, can be "root" or an int.
-
RestrictionFilter: string
Restriction filterExample:
Nested Schema : Filters
Type:
array
Array of filters belonging to the filter group.
Show Source
Example:
[
{
"FilterID":"1",
"FilterName":"All Events"
},
{
"FilterID":"2",
"FilterName":"Syslogs"
}
]
Nested Schema : ParentFilterGroupID
FilterGroupID of Parent Group, can be "root" or an int.
Match One Schema
Show Source
Example:
1
Nested Schema : items
Type:
Show Source
object
-
FilterID: integer
Filter IDExample:
1
-
FilterName: string
Filter NameExample:
All Events
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
object
An error.