Configuration File Management API

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

The following operations are supported on this resource:

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


This API provides the details and content of a particular version of 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/{versionId}


Parameters

NameTypeURI TypeDescriptionRequired
idintPathThe ID of the configuration file. Y
version-idintPathThe version ID of the configuration file. Y

Content Types

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


  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <config-file-version uri="/api/space/config-file-management/config-files/1540111/config-file-versions/1">
    <id>1540111</id>
    <configFileSize>16671</configFileSize>
    <content><!-- Config content here--></content>
    <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>
    <latestMD5>6a5733c00208b5078399d7cebba38d31</latestMD5>
    </config-file-version>


  • Sample Output JSON:

    {
    "config-file-version":
    {
    "@uri":"/api/space/config-file-management/config-files/1540111/config-file-versions/1",
    "id":1540111,
    "configFileSize":16671,
    "content":"<!-- Config content here-->",
    "versionId":1,
    "creationTime":"2012-04-20 08:34:30.0",
    "comment":"This version of the Config file is imported from the device.",
    "latestMD5":"6a5733c00208b5078399d7cebba38d31"
    }
    }