Hi All,
I have a host with 3 templates. Each template contains 4 items, for a total of 12 items.
On the host, I have disabled a couple of the items. Therefore, only 9 items are enabled on the host.
Here is the JSON query I am using:
$jsonData = array('jsonrpc' => '2.0', 'method' => 'item.get', 'params' => array('output' => 'extend', 'host' => $hostname), 'id' => '1', 'auth' => $authtoken);
When I perform a json item.get call, I am returned all 12 items in an array. All items have a state set to 0, because that is the state of the item in the template itself, and not of the state of the item on the host.
Am I doing something wrong? I want to know the state of the item on the host, not the state of the item in the template.
I have a host with 3 templates. Each template contains 4 items, for a total of 12 items.
On the host, I have disabled a couple of the items. Therefore, only 9 items are enabled on the host.
Here is the JSON query I am using:
$jsonData = array('jsonrpc' => '2.0', 'method' => 'item.get', 'params' => array('output' => 'extend', 'host' => $hostname), 'id' => '1', 'auth' => $authtoken);
When I perform a json item.get call, I am returned all 12 items in an array. All items have a state set to 0, because that is the state of the item in the template itself, and not of the state of the item on the host.
Am I doing something wrong? I want to know the state of the item on the host, not the state of the item in the template.
Comment