Software Secure Workload
Activity Configure

API to download Secure Workload software

This endpoint enables clients to download the software for specified “agent_type”, “package_type”, “platform”, “ar- chitecture” and “sensor_version”.

GET /openapi/v1/sw_assets/download?platform=<platform>&agent_type=<agent_type>&pkg_type=<pkg_type>&arch=<arch>&sensor_verion=<sensor_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. <sensor_version> can be any one of the results retrieved from the API to get supported software version. If “sensor_version” is not specified, it will download the latest software.

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.

sensor_version

string

(optional) Specify the software version, defaults to empty string.

Response object: Returns the Secure Workload software for the given parameters.

Sample python code

resp = restclient.download('<download_path>/<file_name>','/sw_assets/download?platform=OracleServer-6.3&pkg_type=sensor_w_cfg&arch=x86_64&sensor_version=3.3.1.30.devel&installation_id=c1caf62038525fbcdf207e1c9a05d71595275147b50b45edc188604b75d9863f0c83ebe65c4890354bb0eb184eeb9bce5a98182e99cdafbada0b6bdb8c5bf5d17bf262ca20f9f010c3f9a81c0e8f6f6c0732f25e6c718b6b9042bba35457d3234b256693ba651a95d35e4434d630f5b031'
if resp.status_code == 200:
   print 'file downloaded successfully'