Requests for configuration information are requests for information about the candidate configuration, a private configuration, or the committed configuration (the one currently in active use on the routing platform). The candidate and committed configurations diverge when there are uncommitted changes to the candidate configuration.
The JUNOScript API defines the <get-configuration> tag element for retrieving configuration information. The JUNOS XML API defines a tag element for every CLI configuration statement described in the JUNOS software configuration guides.
The following example shows how to request information about the [edit system login] hierarchy level in the candidate configuration:
<rpc>
<get-configuration>
<configuration>
<system>
<login/>
</system>
</configuration>
</get-configuration>
</rpc>
For more information, see Requesting Configuration Information. For a summary of JUNOS XML configuration tag elements, see the JUNOS XML API Configuration Reference.