Hi there, i want to reboot my FortiGate 60E via the REST-API. Im using
this endpoint: doing this Request(obviously already authenticated):curl
-k -i -H "Accept: application/json" -X POST
"https://ip:port/api/v2/monitor/system/os/reboot" --cookie cook...
Ok, its working now! I rebooted the device and everything is working
just fine now, dont know what happened. Thank you! PS: Not whole trueth!
Also got a typo for the Header ....
Every other API call that I've found was not working for me. So I just
did the reboot through the Webclient and inspected the network traffic,
since the Webclient obviously also uses the REST API.There I found the
endpoint I just posted. This is the ...
I honestly have no idea why, but rebooting is not working for me. If I
try it the way you showed it (with an API user with Read/Write priv. on
everything) it gives me a 401 - Error on every Request. If I
authenticate with a super_admin via /loginchec...
Other request do work like I do it (im not using an API User, its just a
normal super_admin which I login via /logincheck and then grab the
CSRF-token) So I'm curious why its not working the way I do it. Could
you please post your curl call?