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

Fortigate API - gui-device-latitude/longatude

Hi All

I'm looking to tweak our monitoring profile of the fortigate and would love to get the lattitude/longatude we have set in the unit via the API so we can map them in our monitoring tool

Does anyone know what API endpoint would have this data? I have requested access to the FNDN but not sure if/when that will land.

I would have thoruhg it would be in "/api/v2/monitor/web-ui/state" but can't seem to see it.

Thanks

omegle xender
1 REPLY 1
ozkanaltas
Valued Contributor III

Hello @ritter ,

 

You can use this URL for the request you described.

 

https://x.x.x.x/api/v2/cmdb/system/global?access_token=<YOUR_ACCESS_TOKEN_HERE>

 

Inside this URL output, there is 2 lines about location. You can get location information from them.

 

"gui-device-latitude":"",
"gui-device-longitude":"",
If you have found a solution, please like and accept it to make it easily accessible to others.
NSE 4-5-6-7 OT Sec - ENT FW
If you have found a solution, please like and accept it to make it easily accessible to others.NSE 4-5-6-7 OT Sec - ENT FW
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors