Hi All:
I am having trouble search item/hostid using API.
I am trying to get the hostid by the lastvalue. But I all I get is everything for the key_:
Example :
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"filter": {
"key_": "console.userid",
"lastvalue": ["myuserid"]
}
},
"auth": "***************************",
"id": 1
}
Is the lastvalue field searchable?
Thanks.
I am having trouble search item/hostid using API.
I am trying to get the hostid by the lastvalue. But I all I get is everything for the key_:
Example :
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"filter": {
"key_": "console.userid",
"lastvalue": ["myuserid"]
}
},
"auth": "***************************",
"id": 1
}
Is the lastvalue field searchable?
Thanks.
Comment