/api/space/device-management/devices/{id}/configurations/expanded (v2)

The following operations are supported on this resource:

  • GET - Get expanded device configuration
GET /devices/{id}/configurations/expanded
(Deprecated)
Version 2

This API is used to access configuration data with configuration groups expanded (using the inherit="inherit" option on the Junos "get-configuration" RPC).

Fields Selection

A particular section of a configuration can be fetched using the 'fields' criteria. For example:

    fields=(version,system:(login:(user)))

These fields should be nested properly to get the required configuration content. For example, a 'fields' selection passed as fields=(version) will fetch only version information. (See the sample output below.).

Sample Usage

GET /devices/{id}/configurations/expanded


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    device-idIntegerPathThe ID of the device whose raw configuration data will be accessed. Y
  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <expanded-configuration>
      <configuration>
        <configuration>
          <version>10.0R2.10</version>
        </configuration>
      </configuration>
      <method href= "/api/space/device-management/devices/229377/configurations/raw/match-content" rel="match device configuration"/>
    </expanded-configuration>

  • Sample Output JSON:

    {
      "expanded-configuration":{
        "configuration": "{\"configuration\": {\"version\": \"10.1R2.8122\"}}",
        "method":{
          "@href": "/api/space/device-management/devices/229377/configurations/expanded/match-content",
          "@rel":"match device configuration"
        }
      }

  • Access Control

    The following capabilities are required to access this API: ReadDevices

      For the current version of this API, refer to :
    • version 3