Skip to main content
farhanahmed
Staff
Staff
Jun 6, 2025 3:48 PM UTC

Technical Tip: How to Refresh the FortiClient EMS Fabric Connector in FortiManager using the API

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

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT