REST Resources

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

The following operations are supported on this resource:

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

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

Fields Selection

A particular section of 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/{device-id}/configurations/expanded


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    device-idIntegerPathThe ID of the device from which to get the expanded configuration content. Y
  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <expanded-configuration>
       <configuration><version>10.0R2.10</version></ 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": "10.0R2.10",
       "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: DeviceConfiguration

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