Comments
-
Hi @Tytec, Here's an example script to help get you started. https://github.com/jaimeesc/sonicos_api_mass_edit_s2s_vpn_example This example script can mass-edit site to site and tunnel interface VPN policies to automate a change to multiple policies. You'll see how to authenticate, pull down current configuration, edit,…
-
Hello @Gee, While we do have a fix coming as I mentioned previously, you have a great point that '/direct/cli' is an available option. Here's how you get that to work: POST to /api/sonicos/direct/cli Use the following headers: Accept: text/plain Content-Type: text/plain Body (just in plaintext, with a single command per…
-
The fix is currently in development. Please look for this fix in an upcoming Maintenance Release. Thanks!
-
Hi Gee, I just tried it out and reproduced the error. I'll report this to our developers. To answer your question, you can use the CLI console or SSH to use the command directly. Use the following once logged in: config administration admin <tab> for a list of commands. I hope that helps. Jaime
-
Hi Michael, API support on Gen6 is limited. I can confirm that endpoint is not supported on Gen6. It is supported on Gen7. The API link within the SonicOS management UI should direct you to the correct API documentation on Swagger, however if you are running 6.5.4.7-83n the Gen7 API is being presented instead. While we…
-
In your class: class sonicapi: def __init__(self, hostname, port, username, password): self.baseurl = 'https://{0}:{1}/api/sonicos/'.format(hostname, str(port)) self.authinfo = (username, password) self.headers = OrderedDict([ ('Accept', 'application/json'), ('Content-Type', 'application/json'), ('Accept-Encoding',…
-
Hi, Please give this a try and let me know if the response is any different: from collections import OrderedDict headers = OrderedDict([ ('Accept', 'application/json'), ('Content-Type', 'application/json'), ('Accept-Encoding', 'application/json'), ('charset', 'UTF-8')]) Thanks. Jaime
-
Can you point me to where you saw the reference to "api.sonicwall.com"? I believe that should be sonicos-api.sonicwall.com. I'm not aware of api.sonicwall.com.