Overview of the Request Procedure

To request information from the Junos XML protocol server, a client application performs the procedures described in the indicated sections:

  1. Establishes a connection to the Junos XML protocol server on the routing, switching, or security platform, as described in Connecting to the Junos XML Protocol Server.
  2. Opens a Junos XML protocol session, as described in Starting the Junos XML Protocol Session.
  3. If making configuration requests, optionally locks the candidate configuration or creates a private copy, as described in Locking the Candidate Configuration and Creating a Private Copy of the Configuration.
  4. Makes any number of requests one at a time, freely intermingling operational and configuration requests. See Requesting Operational Information and Requesting Configuration Information.

    The application can also intermix requests with configuration changes, which are described in Changing Configuration Information.

  5. Accepts the tag stream emitted by the Junos XML protocol server in response to each request and extracts its content, as described in Parsing the Junos XML Protocol Server Response.
  6. Unlocks the candidate configuration if it is locked, as described in Unlocking the Candidate Configuration. Other users and applications cannot change the configuration while it remains locked.
  7. Ends the Junos XML protocol session and closes the connection to the device, as described in Ending a Junos XML Protocol Session and Closing the Connection.