FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
alya
Staff
Staff
Article Id 406936
Description This article describes how to get the FortiSandbox Mail queue via API call.
Scope FortiMail.
Solution

Below is the command format in Linux:

 

curl -k -v -b cookie.txt -G -H "Content-Type: application/json" --data-urlencode "reqAction=1" --data-urlencode "extraParam=9%current" --data-urlencode "startIndex=0" --data-urlencode "pageSize=50" --data-urlencode "page_id=SandBoxQueueFolderCollection" "https://x.x.x.x/api/v1/MailSetQueue"

 

Here is a command example in the Postman application:

 

GET in postman.png

 

Result:

 

result.png

Contributors