Created on 10-28-2024 01:22 AM Edited on 10-28-2024 02:05 AM By Jean-Philippe_P
Description | This article describes how to use Postman/curl to export FortiADC system debug files through REST API. |
Scope | FortiADC, FortiADC VM. |
Solution |
Prepare cURL commands that meet the required format specifications for the request.
A sample of the cURL command would look like below:
curl -ik -X GET -H ‘Accept: application/json’ -H ‘APITOKEN: <token>’ https://<FADC-IP>/api/system/debug/state_download?name=<debugfilename>
Steps to perform in Postman:
To generate a system debug file: Method: POST. URL: /api/system/debug/save_state.
To get a list of available debug files: Method: GET. URL: /api/system/debug/get_statefile_list.
Note: The cURL command can also be used in a terminal when cURL is installed.
curl -ik -X GET -H ‘Accept: application/json’ -H ‘APITOKEN: <token>’ https://<FADC-IP>/api/system/debug/state_download?name=<debugfilename> > <dest-filename>
For more information, refer to FortiADC RESTful API Reference: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.