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

Automating Fortigate Firmware Upgrades

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 1
amouawad
Staff
Staff

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"
}