FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
tnesh
Staff & Editor
Staff & Editor
Article Id 327068
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:

      api-result.png

       

  • 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:

api-result-filter-timestamp.png

 

 

Note:

For a complete list of FortiManager API calls, refer to Fortinet Development Network (FNDN).

 

 

Related documents: