Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question