REST Resources

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

The following operations are supported on this resource:

  • GET - Get expanded device configuration
GET /devices/{device-id}/configurations/expanded
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:


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/{device-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"?>

      <method href= "/api/space/device-management/devices/229377/configurations/raw/match-content" rel="match device configuration"/>

  • Sample Output JSON:

        "configuration": "{\"configuration\": {\"version\": \"10.1R2.8122\"}}",
          "@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: DeviceConfiguration

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