This project shows how I deployed a FortiGate firewall in Microsoft Azure and used its REST API to retrieve configuration data through Postman. The goal was to understand how real network devices ...
This script is raw, it needs some work. But it will get you access to the FortiGate without having to generate and track an API token. It also has an example API call in it.