Hi all,
I'm trying to do a search of hostgroups by name using the API. I've not having any luck as the API seems to return all hostgroups. the JSON request I'm generating looks like this
{"jsonrpc": "2.0", "method":"hostgroup.get","params": {"output": "extend", "search": {"name": ["'test*'"]}},"auth": "XXXXX", "id": 0}
I've tried both a percent and star as the wildcard.
Any ideas, or an example?
-Cheers Max.
I'm trying to do a search of hostgroups by name using the API. I've not having any luck as the API seems to return all hostgroups. the JSON request I'm generating looks like this
{"jsonrpc": "2.0", "method":"hostgroup.get","params": {"output": "extend", "search": {"name": ["'test*'"]}},"auth": "XXXXX", "id": 0}
I've tried both a percent and star as the wildcard.
Any ideas, or an example?
-Cheers Max.
Comment