FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
ctanev1
Staff
Staff
Article Id 218070
Description

This articles discusses about FortiClient EMS Cloud API.

Scope FortiClient EMS.
Solution

To use FortiClient EMS API, the login API should be called first to get session_id.

After the session_id is returned from login API, then it is just necessary to call FortiClient EMS API with URL prefix:

'https:// forticlient.forticloud.com/fct/api/public/v1/ems_api'.

1) Login (get session ID by access key and account email).


URL: “https:// forticlient.forticloud.com/fct/api/public/v1/ems_api_cloud/login/"
Method: POST
Post JSON data:
{
"access_key": "***",
"account_email": "***"
}
Response JSON data:
{
“result”: “login”,
“session_id”: “***”
}


2) Call FortiClient EMS API.


URL: “https:// forticlient.forticloud.com/fct/api/public/v1/ems_api" + EMS_API_PATH
(for example: for EMS serial number API “/api/v1/system/serial_number”, the url will be
“https:// forticlient.forticloud.com/fct/api/public/v1/ems_api/api/v1/system/serial_number”)
Method: same as EMS API
Parameter or post data: same as EMS API.
Header:
{
"Authorization": session_id (the session id is returned by login)
}


3) Logout.


URL: “https:// forticlient.forticloud.com/fct/api/public/v1/ems_api_cloud/logout/"
Method: POST
Header:
{
"Authorization": session_id (the session id is returned by login)
}

 

It is possible to get the key login with MASTER account only to 'https://forticlient.forticloud.com/'

 

ctanev1_0-1658396178893.png
Contributors