Correct syntax for a vsys level commit

Reply
Not applicable

Correct syntax for a vsys level commit

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!

Tags (1)
L6 Presenter

Re: Correct syntax for a vsys level commit

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

L7 Applicator

Re: Correct syntax for a vsys level commit

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

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 Live Community as a whole!

The Live Community thanks you for your participation!