Configuration File Management API

/api/space/config-file-management/config-files/{id}/config-file-versions

The following operations are supported on this resource:

GET /api/space/config-file-management/config-files/{id}/config-file-versions (v1)


This API provides a collection of all versions for a configuration file.

Access Control

The following capabilities are required to access this API:
"ViewConfigFilesCap"


Example Usage

GET /api/space/config-file-management/config-files/{id}/config-file-versions


Parameters

NameTypeURI TypeDescriptionRequired
idintPathThe ID of a configuration file that will have its version retrieved. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.config-file-management.config-file-versions+xml;version=1;q=0.01
    application/vnd.net.juniper.space.config-file-management.config-file-versions+json;version=1;q=0.01


  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <config-file-versions uri="/api/space/config-file-management/config-files/1540111/config-file-versions">
    <config-file-version href="/api/space/config-file-management/config-files/1540111/config-file-versions/1" uri="/api/space/config-file-management/config-files/1540111/config-file-versions/1">
    <id>1540111</id>
    <versionId>1</versionId>
    <creationTime>2012-04-20 08:34:30.0</creationTime>
    <comment>This version of the Config file is imported from the device.</comment>
    </config-file-version>
    <config-file-version href="/api/space/config-file-management/config-files/1540111/config-file-versions/2" *
    uri="/api/space/config-file-management/config-files/1540111/config-file-versions/2">
    <id>1540111</id>
    <versionId>2</versionId>
    <creationTime>2012-04-20 08:35:06.0</creationTime>
    <comment>This is an edited version of the Config file version:1</comment>
    </c*
    onfig-file-version>
    </config-file-versions>


  • Sample Output JSON:

    {
    "config-file-versions":
    {
    "@uri":"/api/space/config-file-management/config-files/1540111/config-file-versions",
    "config-file-version":
    [
    {
    "@href":"/api/space/config-file-management/config-files/1540111/config-file-versions/1",
    "@uri":"/api/space/config-file-management/config-files/1540111/config-file-versions/1",
    "id":1540111,
    "versionId":1,
    "creationTime":"2012-04-20 08:34:30.0",
    "comment":"This version of the Config file is imported from the device."
    },
    {
    "@href":"/api/space/config-file-management/config-files/1540111/config-file-versions/2",
    "@uri":"/api/space/config-file-management/config-files/1540111/config-file-versions/2",
    "id":1540111,
    "versionId":2,
    "creationTime":"2012-04-20 08:35:06.0",
    "comment":"This is an edited version of the Config file version:1"
    }
    ]
    }
    }