Correct, I want to get diagnose output like get vpn ike which doesn't seem to be possible via API while other vendors have these features built-in.
Anyways, I figured out how to run such commands via websockets, so I can continue building diagnostic tools for the FortiGate WebUI.
Still it would be nice to be able to utilize the API for this task. Maybe it's possible to tell the config-script/run routine to save the executed commands' output to some other place in the configuration from which another API call could then read it out.
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.