Summary of Cisco XML API Configuration Tags


Table 12-1 provides the CLI to XML application programming interface (API) tag mapping for the router target configuration.

Table 12-1 CLI Command or Operation to XML Tag Mapping 

CLI Command or Operation
XML Tag

To end, abort, or exit1 (from top config mode)

<Unlock>2

clear

<Clear>

show config

<Get> with <Configuration Source="ChangedConfig">

show config running

<Get> with <Configuration Source="CurrentConfig">

show config merge

<Get> with <Configuration Source="MergedConfig">

show config failed

<Load> with <FailedConfig> followed by <Get> with <Configuration Source="ChangedConfig">

configure exclusive3

<Lock>4

To change the selected config

<Set> with <Configuration>

To delete the selected config

<Delete> with <Configuration>

commit best-effort

<Commit Mode="BestEffort">

commit

<Commit Mode="Atomic">

show config failed

<Load> with <FailedConfig>

show commit changes commitid

<Get> with <Configuration Source="CommitChanges" ForCommitID="commitid">

show commit changes since commitid

<Get> with <Configuration Source="CommitChanges" SinceCommitID="commitid">

rollback configuration to commitid

<Rollback> with <CommitID>

rollback configuration last number

<Rollback> with <Previous>

show rollback changes to commitid

<Get> with <Configuration Source="RollbackChanges" ToCommitID="commitid">

show rollback changes last number

<Get> with <Configuration Source="RollbackChanges" PreviousCommits="number">

show rollback points

<GetConfigurationHistory RollbackOnly="true">

show configuration sessions

<GetConfigurationSessions>

1 These CLI operations end the configuration session and unlock the running configuration session if it is locked.

2 This XML tag releases the lock on a running configuration but does not end the configuration session.

3 This CLI command starts a new configuration session and locks the running configuration.

4 This XML tag locks the running configuration from a configuration session that is already in progress.