Hi all,
I am calling the API of local users, license , interfaces etc . Getting response status - 429 with message "Too many requests" .
How can it solve this.
Hi @mandeeeps ,
FortiGate’s REST API returns HTTP 429 “Too Many Requests” when a client exceeds the firewall’s built-in rate-limit. Typical default caps are ~100 GET/monitor calls per second and ~30 configuration writes per second. When you hit the limit the appliance blocks further queries from that source IP for a short sliding window and answers with like your mentioned.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Ansible-too-many-attempts/ta-p/344330
The limits are fixed in FortiOS and cannot be raised, so the remedies are to:
BR.
If my answer provided a solution for you, please mark the reply as solved it so that others can get it easily while searching for similar scenarios.
CCIE #68781
Thank you @atakannatak , i tried with added time sleep, generated new api key with new resource ip but still getting the same 429 status code with message “Too Many Requests”.
Could you help on this what need to be do next.
- mandeeeps
User | Count |
---|---|
2559 | |
1356 | |
795 | |
650 | |
455 |
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.