Hi,
I want to get list (via API) of all hosts assign only to 2 Templates
I try to using :
$json = {
jsonrpc=> '2.0',
method => 'host.get',
params =>
{
output => ['selectParentTemplates'],
#selectParentTemplates => ['selectParentTemplates'], #,'name'],
filter => {
host => "$host_name",
},
countOutput => true,
},
id => 2,
auth => "$authID",
};
$response = $client->call($url, $json);
but got error :
"Bareword "true" not allowed while "strict subs" in use "
Can't find any example.
Please help
Thanks
I want to get list (via API) of all hosts assign only to 2 Templates
I try to using :
$json = {
jsonrpc=> '2.0',
method => 'host.get',
params =>
{
output => ['selectParentTemplates'],
#selectParentTemplates => ['selectParentTemplates'], #,'name'],
filter => {
host => "$host_name",
},
countOutput => true,
},
id => 2,
auth => "$authID",
};
$response = $client->call($url, $json);
but got error :
"Bareword "true" not allowed while "strict subs" in use "
Can't find any example.
Please help
Thanks