Correct syntax for a vsys level commit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Correct syntax for a vsys level commit

Not applicable

I'm having troubles committing out 4.1.4 device for a particular vsys using the XML-API. I'm wondering if I have the syntax correct:

https://{some ip}/api/?type=commit&action=set&cmd=<commit><partial><vsys>vsys1</vsys></partial></commit>&key={somekey}

When I use this command the device will restart and lose all of my pending changes. I can issue the following to commit the entire device, but I'm looking for the vsys level command.

https://{some ip}/api/?type=commit&action=set&cmd=<commit></commit>&key={somekey}

Thanks!

2 REPLIES 2

L6 Presenter

Hi...Please post your question on XML-API in DevCenter that way the thread owner on XML-API will see your questions/comments.  Thanks.

The answer is to use the right syntax

https://{some ip}/api/?type=commit&cmd=<commit><partial><vsys><member>vsys1</member></vsys></partial></commit> 

Regards

  • 2174 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!