FortiPAM
FortiPAM allows you to protect, isolate and secure privileged account credentials, manage and control privileged user access, and monitor and record privileged account activity.
ydong01
Staff
Staff
Article Id 335014

 

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

 

2.PNG

 

1.PNG

 

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
diagnose debug application httpsd -1
diagnose debug enable

 

3.PNG

 

4.PNG

 

For debug API requests, it is better to combine both WAD and HTTPSD commands:

 

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 application httpsd -1
diagnose debug enable