Jaime

SonicWall Employee
Avatar

Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

Jaime SonicWall Employee

Badges (15)

5 Year Anniversary25 Answers4 Year Anniversary3 Year Anniversary2 Year Anniversary5 Helpfuls5 Answers10 Comments1 Year AnniversaryName Dropper5 LikesFirst AnswerFirst CommentEarly AdopterPhotogenic

Comments

  • Hi @hbonath, I've done a lot of research and have come up empty. I think this should be submitted as an Enhancement Request as I haven't found a way to filter those objects via the API endpoints. There is one alternative API endpoint you can use... /direct/cli. You can essentially post the show command you want and get the…
  • Hi @G_Hosa_Phat, I'm still working through this one. Engineering confirmed that Gen6 supports FTP/SCP import, but does not support direct API import. Gen7 does, but Gen6 does not. The Swagger API docs for Gen6 need to be updated. I'm working with the team to update the docs. Thanks!
  • I spent some time reviewing my old code and testing against Gen6. After beating my head against my desk and staring at my code for a while, I tried to compare it against a Gen7. The Gen7 worked. I'll keep trying with Gen6, but I suspect there's a problem with the endpoint.
  • Thanks for the great posts. I'm sure these will be really helpful to future readers. I hope to see your project on Github one day 😎.
  • I'm happy that I was able to help. Thanks for confirming the character limit. That's helpful. I suspect that's changed in Gen7 given the character limit was lifted from the GUI. The E_ERROR "Not allowed in current mode" tells me that you possibly were preempted, and are now in non-config mode. Interesting that the JSON…
  • Hi @G_Hosa_Phat, Send a PUT to /administration/global with the following JSON: { "administration": { "web_management": { "certificate": { "name": "MY_CERT_FRIENDLY_NAME" } } } } Send a POST to /config/pending to commit. I just tried it out and it successfully changed the management certificate selection. Just FYI, I'm…
  • Hi @G_Hosa_Phat, I just got through reading your comments. I believe the issue you're facing now is an issue that was reported to Engineering and was fixed but is not available in a posted firmware release. If you can create a support case and message me the case number, I can make sure you get the hotfix. About your side…
  • I also tested on SonicOSX 7.0.1-5050, and I'm not able to reproduce E_EXISTS when adding members to address groups using PATCH. I sent single membership additions, multiple memberships in the same group, and sent the current members plus a new member. In each instance, it worked without an error. I do receive E_ERROR if I…
  • What method are you using in your request? What is the endpoint you are sending the request to? What firmware release are you running (7.0.1-5050, 5030, etc.)? Any additional detail about the request could be helpful. I've tested modifying memberships on 6.5.4.9 and 7.0.1-5050. In both versions, I am able to send and…
  • That's a great question, @maximtech. I see references to the error codes but haven't found a comprehensive list of them. I'll take this feedback back to the team. Here are a few error codes that I'm aware of: E_OK: Usually accompanies by a Success message and HTTP 200. E_UNAUTHORIZED: Unauthenticated or lacks permissions.…
  • You might want to look at using the serial console/SSH CLI method in combination with the API. The KB below should get you set up. You can issue commands to get specific pieces of the configuration as needed. Pushing that configuration back via the CLI will take longer as you want to avoid flooding the CLI session. The…
  • Each endpoint has its supported methods, but yes, you can export from one appliance and push the configuration to another. Just make sure you are looking at the API docs for your firmware version as there are differences in the Gen6 and Gen7 APIs.
  • Hello, I'm not very familiar with PowerShell, but if I'm following your code correctly, you seem to be on the right track. In Python, we would create a persistent session and all subsequent requests would use the session instance. I ran a few web searches and came across a post that seems like it might help you. If my…
  • I'm happy to hear that helped you. This method is listed as an available method in the Swagger UI docs for Gen7 firmware. I found out about the difference while working on a project and noticed the behavioral difference. In Gen6, PUT can be used to add members, but in Gen7, PATCH should be used instead. PUT will do as…
  • Hi @maximtech, Please try using PATCH to add member objects to existing groups.