To enable API Access to the SonicWall, please follow these steps:
Log in to the firewall as full admin
Enable API Access under Device / Settings / Administration / SonicOS API: “Enable SonicOS API” and “RFC 2617 HTTP Basic Access Authentication”
If a dedicated user is required:
Create the User, assign the role “SonicWall Administrators”
Edit the Group “SonicWall Administrators”
On the Administration Tab enable “Members go straight to the management UI on web login”
On the interface where the API Acces will be made to, enable “HTTPS User Login”
Check if access via the user on the Web Gui works, especially if you use a custom user.
if you use a custom user and have problems, try the admin user and see if that works. If not, API Access is not correctly configured. If it works with the amin user, but not local custom user, check the steps above.
check the Firewall Toolbox Logfile
Try to access the firewall with an API Tool like “Postman” or ARC Rest client.