Technical Tip: How to verify Rest API key from CLI
Description | This article describes how to check validity of Rest API key. |
Scope | FortiNAC-F. |
Solution | Credential Validation for FortiGate might be successful, but the L2 Poll is failing with error 'Warning: Failed to execute CLI commands for FortiGate at x.x.x.x'. ![]() Any output except the errors is considered good. Next step is to verify if FortiGate API token is valid with the following query:
![]()
If token returns 401 Unauthorized the following article might help to generate new token and verify the permissions: Technical Tip: How to configure and use API token to communicate with FortiGate |


