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.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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"
}
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1713 | |
1093 | |
752 | |
447 | |
231 |
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 2024 Fortinet, Inc. All Rights Reserved.