How to make a query to return only exact matches?


Perform a request to the Zabbix API

 "jsonrpc": "2.0",
 "method": "item.get",
 "params": {
 "output": "extend",
 "host": "server01",
 "search": {
 "description": "Name of FS: /data"
 "sortfield": "name"
 "auth": authToken.get("result"),
 "id": authToken.get("id")

this returns itemsid where the value of the search is an occurrence for example
'description': 'Name of FS: /data1'

what should appear in the API Request to return only exact matches?
June 10th 19 at 15:02
1 answer
June 10th 19 at 15:04
In the neighbouring answer to your question, I touched on this subject.
For exact values you should use filter instead of search.

Find more questions by tags Zabbix