Hello everyone :) As the name suggests, I'm trying to recover the ip
addresses of my fortigate's interfaces.I found this command but it only
returns the interface name: /api/v2/cmdb/system/interface/Overlay-A/
"results": [{"name": "Overlay-A","q_orig...
Hi, I'm trying to add ip addresses to my Fortigate but I'm getting an
HTTP Forbidden.Here are the commands I run:curl -k -i -X POST
https://X.X.X.X/logincheck -d "username=apiuser&secretkey=apiuser"
--dump-header header.txt -c cookies.txtcurl -k -i -...
I think my command is wrong because I always get the same thing despite
several syntaxes: Here is my commands : #Recovering the tokencurl -k -c
fgtcookies_fg -d username=apiuser -d secretkey=apiuser
https://X.X.X.X/logincheck #Recovery of Overlay-A i...
Hello, I just found my answer :) Here are the commands:curl -k -c
fgtcookies -d username=apiuser -d secretkey=apiuser
https://X.X.X.X/loginchecktoken=$(grep token fgtcookies | awk -F '"'
'{print $2}') curl -s -b fgtcookies -k -X POST -H "Content-Type...
hi, I confirm that it works by calling the cookies.txt file. curl -k -i
-X GET https://X.X.X.X/api/v2/cmdb/router/static -b cookies.txt | grep
-i "seq"% Total % Received % Xferd Average Speed Time Time Time
CurrentDownload Upload Total Spent Left Spe...
Hello @ozkanaltas, I don't have an API KEY as I use session cookies.
apiuser is an administrator account and not REST API Admin, I don't know
if it makes a difference. I don't see myself generating an API KEY on
each of my Fortigates (~500devices) If...