Download files (POST)
Description
URL |
scheme://domain:port/platform/ws/jobfiles/download/{id} |
|
Description |
Downloads job data for a job from the specified directory. Note: For security reasons, you are not able to view or download hidden files.
|
|
HTTP Method |
POST |
|
Parameters |
Name | Description |
id |
Mandatory. The ID of the job for which to download files. The ID must be a positive integer and must match an LSF® job ID. The job ID cannot be 0. To get a list of jobs and their ID, use: /platform/ws/jobs or platform/ws/jobs/getbasicinfo |
|
dir |
Mandatory. The file path. If you use a relative path, it is relative to the job directory. For example, to download a single file with a full path:
To download a single file from the job directory
To download multiple files from the job directory, separate them with a comma(,):
You can also compress files before downloading by specifying a compression command. Format to compress files before downloading:
For example, to compress and download the file myfile1 with gzip:
To download matching files:
To download all files from a specific directory:
When you use a compression command, files are compressed, then downloaded to the client. The client must decompress the files after download. The compression program must be installed on the Platform Application Center server and must be in the system path. . |
Request
Request-Method |
POST |
|
Request-URI |
/platform/ws/jobfiles/download/{id} |
|
Request-Header |
Name |
Value |
Accept |
multipart/mixed, application/xml, or application/json |
|
Message-body |
|
Response
Response-Code |
|
|
Response-Header |
Name |
Value |
Content-Type |
multipart/mixed, application/xml, or application/json |
|
Message-body |
Success Message |
Returns multipart/mixed data. |
Failure Message |
If not successful, returns an error message. For additional information, refer to the schema file ./schemas/jobs/error.xsd.
|