/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:
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
- CSV
Status codes
- 200: The operation is successful.
- Any other status code value: The operation failed.
Examples
- The following example shows how to download the output file of a specific report.
- Submit a request to display the output from report ID
"6baae44c-2b85-4954-ba44-d3e637d4b48d":
This report searches for files greater than 1 MiB in size and grouped by datasource.curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/db2whrest/v1/ report/6baae44c-2b85-4954-ba44-d3e637d4b48d/download
- The following response is returned. The output is in CSV
format:
datasource,count,sum filesystem1,346.0,685733316581 filesystem2,370213.0,249855575516039
- Submit a request to display the output from report ID
"6baae44c-2b85-4954-ba44-d3e637d4b48d":