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

The following operation is supported on this resource:

  • GET - Get all versions of the configuration file
GET /config-files/{id}/config-file-versionsVersion 1

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

Sample Usage

GET /config-files/{id}/config-file-versions


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    idintPathThe ID of a configuration file. Y
  • 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>
      </config-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"
        }]
      }

  • Access Control

    The following capabilities are required to access this API: ViewConfigFilesCap