FortiNAC
FortiNAC is a s a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
ethomollari
Staff
Staff
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...