/db2whrest/v1/report/<report_id>/download: GET

Downloads the output file of the specified curation report.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Admin Service user
Χ Χ Χ Χ

Synopsis of the request URL

curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/db2whrest/v1/report/
<report_id>/download -X GET

Supported request types and response formats

Supported request types:
  • GET
Supported response formats:
  • CSV

Status codes

  • 200: The operation is successful.
  • Any other status code value: The operation failed.

Examples

  1. The following example shows how to download the output file of a specific report.
    1. Submit a request to display the output from report ID "6baae44c-2b85-4954-ba44-d3e637d4b48d":
      curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/db2whrest/v1/
      report/6baae44c-2b85-4954-ba44-d3e637d4b48d/download
      This report searches for files greater than 1 MiB in size and grouped by datasource.

    2. The following response is returned. The output is in CSV format:
      datasource,count,sum
      filesystem1,346.0,685733316581
      filesystem2,370213.0,249855575516039