I am struggling with this one
I have Item Prototypes inside a Discovery Rule inside a Template.
Another template is linked, and that template has linked hosts.
All these hosts get discovered items, and all works great.
Now I want to list all these discovered items with the API.
How I can list them?
With this I get close
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"search": {
"key_": "MY KEY"
}
},
"auth": "token",
"id": 1
}
But of course, it lists other things that where not discovered by this template, and there is no way to filter that list.
Unfortunatelly I cannot see any type of "Discovered By" where I could put the ID of my Discovery Rules.
Any ideas?
I have Item Prototypes inside a Discovery Rule inside a Template.
Another template is linked, and that template has linked hosts.
All these hosts get discovered items, and all works great.
Now I want to list all these discovered items with the API.
How I can list them?
With this I get close
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"search": {
"key_": "MY KEY"
}
},
"auth": "token",
"id": 1
}
But of course, it lists other things that where not discovered by this template, and there is no way to filter that list.
Unfortunatelly I cannot see any type of "Discovered By" where I could put the ID of my Discovery Rules.
Any ideas?
Comment