FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
farhanahmed
Staff
Staff
Article Id 393333
Description This article describes how to update (apply and refresh) the FortiClient EMS Fabric Connector in FortiManager using API and Postman.
Scope FortiManager.
Solution
  1. Log in to FortiManager using the CSRF method mentioned in the article: Technical Tip: How to login to FortiManager/FortiAnalyzer using API with CSRF cookies.
  2. Create a new POST request with 'https://{{host}}/cgi-bin/module/flatui/json'.
  3. Under the 'header' tab of this request, add a new entry and use the variable {{csrf_token}}, which was created in step #3


Key:  XSRF-TOKEN | Value: {{csrf_token}}

 

ll.png

 

  1. In the body of this new request, add the following query:

 

{
    "id": "1",
    "method": "exec",
    "params": [
        {
            "data": {
                "flags": [
                    "create_task",
                    "nonblocking"
                ],
                "adom": "{{ADOM}}",
                "server_type": "ems",
                "connector": "{{NAME}}",
                "service_type": 0
            },
            "url": "/connector/update"
        }
    ]
}


  1. After, send the request.

 

Example response:

 

ll.png

 

  1. In FortiManager -> Task Monitor, a new task is created with the description 'import from connector'.The task ID is in the output of step #7.

 

ll.png


Related documents:

FortiClient EMS Connector

Technical Tip: Using FortiManager API

Fortinet Development Network (FNDN) - FortiManager