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.
{"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.
3) Select the Raw Text option and paste the cURL command.
4) Select Continue/Import.
6) Select Save Response and select Save to a file.
For more information, refer to the FortiWeb RESTful API reference guide: |