Description | This article describes how to debug API requests in FortiPAM. |
Scope | FortiPAM. |
Solution |
The document Example troubleshooting introduces a basic troubleshooting method, which is mostly focused on WAD-related debugging. In real tests, especially for API queries, it is not enough.
For example: Using these commands can debug secret-approval-related API queries.
diagnose debug console timestamp enable diagnose wad debug enable level verbose diagnose wad debug enable category secret diagnose wad debug enable category secret-approval diagnose debug enable
https://<FortiPAM-IP>/api/v2/cmdb/secret/approval-profile/?access_token=<FortiPAM-TOKEN> The above command will not give results, it is mostly handled by httpsd, not WAD. Should use the below debug command:
diagnose debug console timestamp enable
For debug API requests, it is better to combine both WAD and HTTPSD commands:
diagnose debug console timestamp enable |
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 2024 Fortinet, Inc. All Rights Reserved.