Hi!
I'm trying to list spesific host types usig API;
curl -k --location --request GET 'https://x.x.x.x:8443/api/v2/host?filter=iconType==camera' --header 'Authorization: Bearer XXXXXXX'
(just using at this example icon type, that is one differentiator between host types in our case)
This filter doesn't work. Am I doing something wrong?
Also one interesting thing is, that only 25 hosts are shown, when no filter is used...
Although the last line tells:
..."filtered":4865,"total":4865}
NAC version 7.4.0
BR, A
The default API call will return 25 entries, you can try to increase by specifying it like '?count=999'. There is no syntax present for filtering the content like shown in your example.
You can get more information about API in Fortinet Developer Network.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1742 | |
1112 | |
759 | |
447 | |
241 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.