Ad Widget

Collapse

trigger.get filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlBoPo
    Junior Member
    • Aug 2018
    • 23

    #1

    trigger.get filter

    Hello,

    I want to use `trigger.get` API and I'd like to add a filter to the request to only retrieve triggers I'm interested in.
    So if I look at the [doc](https://www.zabbix.com/documentation.../trigger/get?s[]=trigger&s[]=get), it's said:

    <Accepts an array, where the keys are property names, and the values are either a single value or an array of values to match against.>

    But what a property name is exactly?

    I'd like to filter the results on an existing trigger tag. Is it possible?

    I tried the following query but it doesn't seem to use my filter:
    { "jsonrpc": "2.0", "method": "trigger.get", "params": { "output": [ "triggerid", "description", "priority" ], "selectTags" : "extend", "filter": { "tags": [ "tag": "device" ] }, "sortfield": "priority", "sortorder": "DESC" } }
Working...