I am trying to gather data with api calls from fortinet devices. Currently I need to extract data from a FortiGate. I can't seem to find an API call that gather the data I need but I also don't find any other way to gather the data with API call. The data must be gathered with API not snmp of ssh.
The data I need from these firewalls are:
-Nat exhaustion (maybe a way to send exec commands to cli?)
-Hash of admin users
If you have suggestions please feel free to leave them here :)
In the following code you can find examples how to get and update the NAT objects on the Fortigate using the fortigate-api package