I'm looking for some example code snips for the API on the SonicWALL SMA management on port 8443.
When supporting customers we occasionally need to drop their session on any one of the four global gateways and doing this though a template/script is the direction we need to go.
I'm able to pull the list of all users on all four of my global locations. The formatted CURL request works great as a pull (GET), but I'm running into a brick wall when it comes to formatting the JSON request to "terminate" one of the user sessions.
The POST method is technically working from the perspective of authentication to the target appliance, but I think I have the format of the posted JSON file messed up. Is there an example of API calls?
The SonicWALL SMA API documentation is fine and all GETs to the API work well... I think the POST portion of the document is missing something that I need or possibly the Terminate functions array type is throwing me off.
Any examples would be fantastic!