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.
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"
}
User | Count |
---|---|
2269 | |
1230 | |
772 | |
452 | |
391 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.