From the entity navigation on the device dashboard, hover over the Discovery button and click Troubleshooting.
For Fortinet/FortiOS version 6.0.0 REST API credentials, there are three steps that need to be verified before a device can be authorized.
- Step 1 - Device must be managed
- Step 2 - Device must have device API credentials
- Step 3 - Device must be running device API
- Step 4 - Device must have valid device API credentials
Step 1 - Device must be managed
- To manage the device, click re-enable management.
- Update the management status from Unmanaged to Managed.
- Click Save.
Step 2 - Device must have device API credentials
If Fortinet device API credentials for this device are available, ensure the credentials are associated with the device. See How do I edit or delete device API credentials?
If Fortinet device API credentials aren’t available for this device, you’ll need to add them. See How do I add Fortinet device API credentials?
Step 3 - Device must be running device API
-
The device admin profile must have the right permissions
- Log into FortiGate.
- Navigate to System > Admin Profiles.
- Edit the admin profile associated with the API token.
-
Verify access permissions are set to the following (see screenshot below for details):
- Firewall to Custom > Address to Read
- Network to Custom > Configuration and Router to Read
- System to Custom > Configuration to Read
- WiFi & Switch to Read
-
Click OK.
- Verify the device REST API admin is set to the correct admin profile and the trusted hosts are set to the IP address of the collector.
- Log into FortiGate.
- Navigate to System >Administrators.
- Edit the REST API admin associated with the API token.
- Verify that the admin profile matches the one from above.
- Verify that trusted hosts is set to A.B.C.D/0 where A.B.C.D is the IP address of the Auvik collector.
Step 4 - Device must have valid device API credentials
- Go to System > Admin > Profiles.
- Click Create New or edit an existing profile.
In the profile configuration:- Set System Configuration to Read/Write.
- Set rest of the permission to Read (refer to the screenshot above)
- Under REST API Access, ensure it is enabled.
- Click OK to save.
Congratulations!
Your device is fully authenticated for the FortiOS REST API and we’ll start gathering information about your device.