FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
kmak
Staff
Staff
Article Id 300865
Description This article describes how to download the all-in-one debug file using FortiADC RESTful API.
Scope FortiADC v7.0.2 and above.
Solution

Prerequisite:

  • REST API Admin user has Read-Write permission to System privilege.

 

FortiADC's all-in-one debug file can be very large, and the browser may fail to download the debug file. Alternatively, the all-in-one debug file can be downloaded using RESTful API.

 

  1. The API to save the current state of all-on-one debug. https://<IP>/api/system/debug/save_state
  • Using the Postman app.

 

kmak_0-1708663987947.jpeg

  • Using cURL.

 

kmak_1-1708663987951.jpeg

 

  1. The API to get the all-in-one debug list. https://<IP>/api/system/debug/get_statefile_list
  • Using Postman App.

 

kmak_2-1708663987954.jpeg
  • Using cURL.

 

kmak_3-1708663987958.jpeg

 

  1. The API to download/export the all-in-one debug file. https://<IP>/api/system/debug/state_download?name=<all-in-one-name>
  • Using Postman App. The request will use Send and Download.

 

kmak_4-1708663987960.jpeg
  • Using cURL.

 

kmak_5-1708663987963.jpeg

 

Related document:

Create REST API administrator users
Contributors