If I understand correctly, the XML API can be used to retrieve and edit the latest version of the config, whether it has been committed as the running config or not. Because a running config represents the actual current configuration state of the device, it would be very helpful to be able to explicitly request a retrieval of that config version. At the minimum, when a config is retrieved it would be helpful to see in the data whether it had been committed or not (something like a committed="true|false" attribute on the root config element).
Does a capability like this exist in the API, perhaps as an undocumented option?
Thanks in advance for your help!
Solved! Go to Solution.
You can retrieve the running config using type=config and action=show:
You can retrieve candidate config using type=config, action=get, and the xpath for appropriate config section.
I was able to verify that the rule bases reflected change as you said. However, I did also notice that the output with the "show" action is considerably smaller than the output of the "get" action. Is it possible to get predefined elements such as applications in the running config? The use of the xpath request parameter with the "show" action always seems to return an error "No such node".
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!