This article describes how to get an SD-WAN health-check (SLA) log using FortiManager API.
Scope
FortiManager.
Solution
Following API URL provides SD-WAN health-check (SLA) logs:
"url": "/rtm/global/rhistory/monitor/sd-wan-sla-log/device/<device-name>"
Sample JSON-API:
{ "method": "get", "params": [ { "url": "/rtm/global/rhistory/monitor/sd-wan-sla-log/device/fgt-lab" } ], "session": "{{session}}", "id": 1 }
Sample Output:
To filter certain timestamps, it can be possible to use the following API filter:
{ "method": "get", "params": [ { "url": "/rtm/global/rhistory/monitor/sd-wan-sla-log/device/fgt-lab", "filter": { "timestamp": [ [ "start", "==", 1721527651 ], [ "end", "==", 1721527681 ] ], "key": [ [ "name" ], [ "interface" ] ] } } ], "session": "{{session}}", "id": 1 }
Sample output:
Note: For a complete list of FortiManager API calls, refer to Fortinet Development Network (FNDN).