FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
mattia1
Staff
Staff
Article Id 414672
Description This article describes how to enable the REST API globally and for a specific Administrator on FortiMail.
Scope FortiMail.
Solution

Enable the REST API under the web service:

CLI:

 

FML # config system web-service

FML (web-service) # set rest-api-status enable

FML (web-service) # end

 

GUI:

  1. Navigate to System -> Configuration -> Web Service -> Enable REST API.

 

enable REST-API - GUI.png

 

 

  1. Enable the REST API under the administrator who will be used to log in, using REST API commands.

  1. Navigate to System -> Administrator -> Select Edit.
                                                                              

admin-edit.png

 

  1. Make sure to enable the REST API for the chosen administrator.

     

Enable-API-admin.png