API Call:
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hostids": "10084",
"search": {
"name": "Testing"
},
"selectItemDiscovery": "extend"
},
"auth": "hidden",
"id": 1
}
Result (summary)
{
"itemid": "23718",
"hostid": "10084",
"name": "Testing",
"itemDiscovery": {
"itemdiscoveryid": "247",
"itemid": "23718",
"parent_itemid": "23280",
"key_": "Testing"
},
}
I would like to either filter or search the value in itemDiscovery->itemid
In the API call I can use successfully either:
"search"={"name": "Test"}
or
"filter"={"name": "Testing"}
But I have not figured out the syntax to find items within a subset like itemDiscovery.
I tried and failed using:
search={"itemDiscovery.itemid": "23718"}
Is there a way to search or filter on data within a subset like itemDiscovery?
Note:
I know that many other API calls exist for specific subset. I am just looking for the proper syntax, if any, to search or filter subsets of data.
Thank you
Z
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hostids": "10084",
"search": {
"name": "Testing"
},
"selectItemDiscovery": "extend"
},
"auth": "hidden",
"id": 1
}
Result (summary)
{
"itemid": "23718",
"hostid": "10084",
"name": "Testing",
"itemDiscovery": {
"itemdiscoveryid": "247",
"itemid": "23718",
"parent_itemid": "23280",
"key_": "Testing"
},
}
I would like to either filter or search the value in itemDiscovery->itemid
In the API call I can use successfully either:
"search"={"name": "Test"}
or
"filter"={"name": "Testing"}
But I have not figured out the syntax to find items within a subset like itemDiscovery.
I tried and failed using:
search={"itemDiscovery.itemid": "23718"}
Is there a way to search or filter on data within a subset like itemDiscovery?
Note:
I know that many other API calls exist for specific subset. I am just looking for the proper syntax, if any, to search or filter subsets of data.
Thank you
Z

Comment