Skip to main content
00luyan
New Member
October 20, 2022
Question

Automating Fortigate Firmware Upgrades

  • October 20, 2022
  • 1 reply
  • 2476 views

Hello,

I am looking into automating firmware upgrades for fortigates hopefully via the rest api with a python script. I just wanted to get thoughts on this, and see if anyone has done this? If so how did you need any other special requirements? Any resources you used to accomplish this? The only thing I've been able to find on this is an ansible module, but prefer to go the python script method for this if possible.

1 reply

amouawad
Staff
Staff
October 23, 2022

Using REST API you can first get the list of available firmware images using: monitor/system/firmware

 

 

You'll see a list of images, we want the 'id' value.

 

Use the 'id' value as the 'filename' in monitor/system/firmware/upgrade as per the following:

 

{
"source": "fortiguard",
"filename": "07000000FIMG0013700005"
}

 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!