Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

<get>

 

Usage

Description

Request the committed configuration and device state information from the NETCONF server. To display one or more sections of the configuration hierarchy (hierarchy levels or configuration objects), enclose the appropriate child tag elements in the <filter> element.

Attributes

formatSpecify the return format for the configuration data. If you omit this attribute, the server returns the configuration data formatted as Junos XML elements. Acceptable values are:
  • json—Configuration statements are formatted in JavaScript Object Notation (JSON). Starting in Junos OS Release 14.2, you can display the configuration and device state information in JSON format.

  • set—Configuration statements formatted as Junos OS configuration mode set commands.

  • text—Configuration statements are formatted as ASCII text, using the newline character, tabs and other white space, braces, and square brackets to indicate the hierarchical relationships between the statements. This is the format used in configuration files stored on a device running Junos OS and displayed by the CLI show configuration command.

  • xml—Configuration statements are represented by the corresponding Junos XML tag elements. This is the default value if the format attribute is omitted.

<filter>(Optional) Enclose the <configuration> tag element. The optional type attribute indicates the kind of syntax used to represent the requested configuration elements; the only acceptable value is subtree.

To specify the configuration elements to return, include within the <filter> tag element the Junos XML tag elements that represent all levels of the configuration hierarchy from the root (represented by the <configuration> tag element) down to each element to display. For information about the configuration elements available in the current version of the Junos OS, see Junos XML API Configuration Developer Reference.

Release History Table
Release
Description
Starting in Junos OS Release 14.2, you can display the configuration and device state information in JSON format.