Description | This article describes API query policy for IT audit. |
Scope | FortiManager. |
Solution |
There is a requirement from IT audit department for find unused policy. It can use FortiGate API to find it, but if lot of FortiGate managed by FortiManager, use FortiManager API will be quick.
Hitcount information is not actively updated in FortiManager. It needs to be manually refreshed by GUI or API as described below to get the latest values āāby associating the FortiGate via the API sent by FortiManager.
Example:
The above operations are manual and are not easy for plenty of FortiGate and ADOMs. The following are the API steps:
Troubleshooting: The below commands can be used on FortiManager CLI to debug the API Calls:
diagnose debug service httpd 255 diagnose debug service main 255 For more details, visit https://fndn.fortinet.net/ |