Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Rob_Roche
New Contributor II

API to find device inventory - from WAN

I have been following various posts (mainly https://community.fortinet.com/t5/Support-Forum/API-for-device-inventory/td-p/259048 & https://docs.fortinet.com/document/forticonverter/6.2.1/online-help/866905)

I have found this works great is the query runs from the LAN, however I am looking to poll this from WAN1 which returns 0 results.

I am guessing this is actually querying the interface it is received on as it doesnt actually fail.

Can the inreface be queried as part of the API call ?

 

FYI this is on a 50e (6.2.16) and 60f (6.4.15)

3 REPLIES 3
Raghu_Kumar
Staff
Staff

Hello Rob,

 

Please check the following document for more information on API calls:

https://docs.fortinet.com/document/fortigate/7.4.3/administration-guide/940602/using-apis

For a complete list of API calls, see the Fortinet Development Network (FNDN). A subscription is required to access the FNDN.
https://fndn.fortinet.net/
https://www.fortinet.com/content/dam/fortinet/assets/data-sheets/Fortinet_Developer_Network.pdf

Raghuram Kumar
Rob_Roche
New Contributor II

Thank-you Raghu

 

On close inspection my original api query is working as expected (the issue was device detection was not enabled so was showing no results).

The documentation on FNDN is much more detailed though and has expanded what options and results are available too !

mikeharing72
New Contributor

The API documentation thoroughly to see if there are specific parameters or settings related to Photo call WAN1 querying? It's possible that adjusting the API call configuration could resolve this issue.

Labels
Top Kudoed Authors