Device Image Management API

/api/space/software-management/packages/{id}

The following operations are supported on this resource:

GET /api/space/software-management/packages/{id} (v1)


This API retrieves software package details from Junos Space with a particular ID.

Access Control

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


Example Usage

GET /api/space/software-management/packages/{id}


Parameters

NameTypeURI TypeDescriptionRequired
software-package-idintPathSoftware package ID for the package to get from Junos Space Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.software-management.package+xml;version=1
    application/vnd.net.juniper.space.software-management.package+json;version=1


  • Sample Output XML:
    <package uri="/api/space/software-management/packages/1835128" key="1835128">
      <fileName>junos-srxsme-10.3R2.11-domestic.tgz</fileName>
      <fileMD5>acee52b0f981e0c7dc7d10a73695939e</fileMD5>
      <version>10.3R2.11</version>
      <size>210458199</size>
      <decodeStatus>DECODE_SUCCESS</decodeStatus>
      <uploadStatus>UPLOAD_SUCCESS</uploadStatus>
      <allowDelete>true</allowDelete>
      <uploadTime>2011-03-18 18:02:20.0</uploadTime>
      <supportedPlatforms>
        <platform>SRX5600</platform>
        <platform>SRX5800</platform>
      </supportedPlatforms>
      <supportedSeries>
        <series>SRX5600</series>
        <series>SRX5800</series>
      </supportedSeries>
      <platformType>SRX5000</platformType>
      <method href="/api/space/software-management/packages/1835128/exec-stage"
        rel="stage software package" />
      <method href="/api/space/software-management/packages/1835128/exec-deploy"
        rel="deploy software package" />
      <method href="/api/space/software-management/packages/1835128/exec-verify"
        rel="verify software package" />
    </package>


  • Sample Output JSON:
    {"package":
      {
      "@uri":"/api/space/software-management/packages/1835128",
      "@key":"1835128",
      "fileName":"junos-srxsme-10.3R2.11-domestic.tgz",
      "fileMD5":"acee52b0f981e0c7dc7d10a73695939e",
      "version":"10.3R2.11",
      "size":210458199,
      "decodeStatus":"DECODE_SUCCESS",
      "uploadStatus":"UPLOAD_SUCCESS",
      "allowDelete":true,
      "uploadTime":"2011-03-18 18:02:20.0",
      "supportedPlatforms":
        {
        "platform":
          ["SRX5600","SRX5800"]
        },
      "supportedSeries":
        {
        "series":
          ["SRX5600","SRX5800"]
        },
      "platformType":"SRX5000",
      "method":
        [
        {"@href":"/api/space/software-management/packages/1835128/exec-stage",
        "@rel":"stage software package"
        },
        {"@href":"/api/space/software-management/packages/1835128/exec-deploy",
        "@rel":"deploy software package"
        },
        {"@href":"/api/space/software-management/packages/1835128/exec-verify",
        "@rel":"verify software package"
        }
        ]
      }
    }



PUT /api/space/software-management/packages/{id} (v1)


This API updates the platform type of an existing software package file on the platform.

Access Control

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


Example Usage

PUT /api/space/software-management/packages/{id}


Parameters

NameTypeURI TypeDescriptionRequired
software-package-idintPathThe software package ID for the package to be updated. Y

Data Notification

This API supports data notification.

See the following links for information about enabling data notifications changes to be received for this service:

  • Data Notification Usage.


Content Types


DELETE /api/space/software-management/packages/{id} (v1)


This API is used to delete an existing software package file on the platform.

Access Control

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


Example Usage

DELETE /api/space/software-management/packages/{id}


Parameters

NameTypeURI TypeDescriptionRequired
software-package-idintPathA valid software ID. Y

Data Notification

This API supports data notification.

See the following links for information about enabling data notifications changes to be received for this service:

  • Data Notification Usage.