FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
shafiq23
Staff
Staff
Article Id 250939
Description This article describes how to backup FortiWeb configuration through the REST API.
Scope FortiWeb 6.3 and later.
Solution

FortiWeb offers a RESTful API that follows the principles of Representational State Transfer.

 

This API allows users to access and modify FortiWeb application settings. By utilizing the RESTful API, users can seamlessly integrate FortiWeb with other systems and exercise control over its features.

 

The API uses HTTPS+ authentication to ensure secure and programmable management. This makes it easy for users to integrate FortiWeb with other configurations.

Additionally, the FortiWeb RESTful API enables comprehensive management of all FortiWeb features.

 

Retrieving the FortiWeb configuration backup file can be achieved by making an API call. For this demonstration, Postman will be used to send the API call to FortiWeb REST API.

 

Prepare cURL commands that meet the required format specifications for the request.

 

1) Request Method: GET.
2) Host header.
3) Authorization header.


- Encode string with BASE64 to use it as an Authorization token.

 

{"username":"admin","password":"a","vdom":"root"}

 

A cURL command would look like the following:

 

# curl -k -X GET 'https://<FWB-IP>/api/v2.0/system/maintenance.backupconfiguration?ml_backup=&password=&type=entire' -H 'Authorization:<token>'

 

Steps to perform in Postman:

 

1) Open Postman and create a new request.
2) Select the Import button located in the top left corner of the screen.

 

1.png

 

3) Select the Raw Text option and paste the cURL command.

 

2.png

 

4) Select Continue/Import.
5) Select Send to post the command.

 

3.png

 

6) Select Save Response and select Save to a file.

 

4.png

 

For more information, refer to the FortiWeb RESTful API reference guide:
https://fndn.fortinet.net/index.php?/fortiapi/939-fortiweb/