Software Secure Workload
Activity Configure

API to get supported software version

This endpoint returns the list of supported software version for specified “agent_type”, “package_type”, “platform” and “architecture”.

GET /openapi/v1/sw_assets/download?platform=<platform>&agent_type=<agent_type>&pkg_type=<pkg_type>&arch=<arch>&list_version=<list_version>&installation_id=<installer_id>

where <agent_type>, <platform> and <arch> can be any one of the results retrieved from the API to get supported platforms, and <pkg_type> can be either “sensor_w_cfg” or “sensor_bin_pkg”. Both <pkg_type> and <agent_type> are optional but at least one of them should be specified. <list_version> must be “True” to enable this API.

Parameters: The request URL contains the following parameters.

Name

Type

Description

platform

string

Specify the platform.

agent_type

string

(optional) Specify the agent type.

pkg_type

string

(optional) Specify the package type, the value can be either “sensor_w_cfg” or “sensor_bin_pkg”.

arch

string

Specify the architecture.

list_version

string

Set to “True” to enable software version search.

Response object: Returns a list of supported software version.

Sample python code

resp = restclient.get('/sw_assets/download?platform=OracleServer-6.3&pkg_type=sensor_w_cfg&arch=x86_64&list_version=True')
if resp.status_code == 200:
   print resp.content
resp = restclient.get('/sw_assets/download?platform=OracleServer-6.3&pkg_type=sensor_w_cfg&arch=x86_64&list_version=True&installation_id=c1caf62038525fbcdf207e1c9a05d71595275147b50b45edc188604b75d9863f0c83ebe65c4890354bb0eb184eeb9bce5a98182e99cdafbada0b6bdb8c5bf5d17bf262ca20f9f010c3f9a81c0e8f6f6c0732f25e6c718b6b9042bba35457d3234b256693ba651a95d35e4434d630f5b031')
if resp.status_code == 200:
   print resp.content

Sample response

3.3.1.30.devel
3.3.1.31.devel