Download a Task File
get
/rest/v16/tasks/{taskId}/files/{fileName}
This endpoint downloads the specified task file (e.g. log files and export zip files).
Request
Path Parameters
-
fileName(required): integer
The name of the file to download. File names are acquired from the Get Task File List REST API response.
-
taskId(required): string
The Task ID
Response
Supported Media Types
- text/plain
- application/zip
Default Response
File content
Examples
The following example shows how to download the specified Data Table task file (e.g. log files and export zip files) by submitting a GET request to the REST resource using cURL. File names are acquired from the Get List of Files for a Data Task REST API response. For more information about cURL, see Use cURL.
curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/tasks/41365939/files/datatable_1571428547692