FortiWeb device has provided a series of native APIs for the user to manage its own internal items, e.g. https://172.22.10.74:90/api/v1.0/System/Network/StaticRoute. FortiWeb Manager encapsulates all necessary information of native FortiWeb APIs and uses two easier-to-use APIs for configuration management:
- to-fwb API: https://<fortiweb_manager_address>:<port>/api/v1/to-fwb/, used for all remote configuration requests, including fetching, creating, updating and deleting. You can specify parameters such as device, method and URL to let FortiWeb Manager know more details of the configuration requests.
to-fwb/upload API: https://<fortiweb_manager_address>:<port>/api/v1/to-fwb/upload/, used to upload files, for instance, certificate uploading. FortiWeb Manager supports three pre-set file types: Certificate, Local Certificate, PKCS12 Certificate. You can also select File - Custom to upload customized files.
The following diagram shows the process of FortiWeb Manager receiving these API requests, translating them to native FortiWeb APIs and forwarding the corresponding ones to the remote FortiWeb devices.
Using API proxy is an easier way to integrate multiple FortiWeb devices into your own management system.
Using API proxy
The API proxy page is a useful tool to look up the HTTP request and HTTP response of the to-fwb API and to-fwb/upload API. You can configure the following parameters and click Send, the page then displays the HTTP request and HTTP response for the parameters you have specified.
Select the devices to which the API request sends.
Select GET, POST, PUT or DELETE methods, depending on the operations you desire.
Enter the FortiWeb API URL for the specific operations.
This displays when you select File types in Type. You can select the files you want to upload.
For more information on the FortiWeb Manager API and FortiWeb API usage, see: