A
A
Ao2019-09-03 14:15:41
Zabbix
Ao, 2019-09-03 14:15:41

How to use the API to find a data element?

I don't understand how to make a jsonrpc request, and is it possible, in principle, to find the data element with the key_:"hw.addr" key and the lastvalue:"value" value.
I tried to select all hosts and add the items field to them.
'{
"jsonrpc": "2.0",
"id": 2,
"method": "host.get",
"params": {
"selectItems":{
"search":{ "key_":"hw.addr" }
}
},
"auth": "'.
But the items field comes with empty arrays for some reason...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question