-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
3.2.3
-
None
The API docs for Actions indicate that creating action conditions will default to 0 for the operator, but that value is not valid.
ie. doing an "action.create" via the API and not specifying the operator results in an invalid action condition, as can be seen in the server logs:
27429:20170207:150425.793 unsupported operator [0] for condition id [123]
And the same can be seen in the database:
conditionid | actionid | conditiontype | operator | value |
---|---|---|---|---|
123 | 107 | 24 | 0 | "system_type": "feed" |
Here's a comparison with an action/condition that was created via the web interface:
conditionid | actionid | conditiontype | operator | value |
---|---|---|---|---|
18 | 14 | 24 | 2 | "location": "us-east-1" |
Looks like the default operator should be "2" and not "0" for action conditions
- duplicates
-
ZBX-3783 Proper API validation
- Reopened