Created on
07-21-2024
05:41 AM
Edited on
07-21-2024
05:42 AM
By
Jean-Philippe_P
Description
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:
- Sample JSON-API:
- 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:
- Sample output:
Note:
For a complete list of FortiManager API calls, refer to Fortinet Development Network (FNDN).
Related documents:
- Technical Tip: Using FortiManager API
- Fortinet Development Network (FNDN) - FortiManager
- Technical Tip: Managing the JSON API call with Postman and how to delete, create and update an ADOM ...
- API admin setup
- Technical Tip: Using Firmware Manager CLI and API
- Technical Tip: Managing the JSON API call with cURL under Linux/Gnu and how to get, delete and creat...
- Technical Tip: How to run a proxy API call from FortiManager to a managed FortiGate
- Technical Tip: API requests by using the API token authentication method with Postman