FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
Anonymous
Not applicable
Article Id 230019
Description This article describes three common API calls to leverage from FortiNAC and its syntax.
Scope FortiNAC 8.x, 9.x.
Solution

1) Getting the host record by the hostname parameter: 

https://<FNAC_FQDN/IP>:8443/api/v2/host?filter=hostName==<hostname>

 

2) Getting the host record by the logged-on user ID:

https://<FNAC_FQDN/IP>:8443/api/v2/host?filter=UserLoggedOn==<username>

 

3) Getting the host/s that is/are associated with a user:

https://<FNAC_FQDN/IP>:8443/api/v2/host/for-user?userID=<username>

 

Related document:

https://fortinetweb.s3.amazonaws.com/docs.fortinet.com/v2/attachments/be30cb99-0907-11ed-bb32-fa163e...

Contributors