FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
shafiq23
Staff & Editor
Staff & Editor
Article Id 411538
Description This article describes how to use curl or Postman to export FortiADC configuration through the RESTful API.
Scope FortiADC.
Solution

Prerequisite:
Create a REST API administrator for the token:
Creating REST API Administrator Users 

 

RESTful API Request Format:

  1. Request Method: GET.
  2. REST API URL.
  3. HTTP header.
    • APITOKEN.
    • Accept.
  4. Parameter: Password.

 

Note: Define a value for the password to encrypt the configuration file.

 

cURL:

 

curl --location 'https://<FADC-IP/Host>/api/downloader/running_config?password=' \
--header 'APITOKEN: <rest-token>' \
--header 'Accept: application/json' \
-OJ

 

Postman:

 

1.png

 

For more information, refer to this FortiADC REST API document.