Created on 09-26-2024 01:27 PM
Description | This article describes the behavior of FortiGate when continuously invoking HTTP calls through Ansible scripts and how to fix it. |
Scope | FortiGate, Ansible. |
Solution |
In case the ansible script contains a single task or multiple tasks that can take around 5 minutes or more to complete, and a REST API admin is configured with traditional credentials of user and password, then users will observe the logs below on FortiGate.
The solution is to use a REST API administrator API Key following the documentation below and make sure the API Key is placed into the host file attribute fortios_access_token plus inside the task or YAML files depending on the programming structure. The article: Technical Tip: Application of Ansible on FortiGate contains a few structural examples.
|
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.