Get the list of files associated with a job (GET)

Description

URL

scheme://domain:port/platform/ws/jobfiles/{id}

Description

Lists all the files associated with a job.

HTTP Method

GET

Parameters

Name Description
 

id

Required. ID of job for which to retrieve associated files.

The job ID cannot be 0.

To get a list of jobs and their ID, use: /platform/ws/jobs or platform/ws/jobs/getbasicinfo

Request

Request-Method

GET

Request-URI

/platform/ws/jobfiles/{id}

Request-Header

Name

Value

Accept

application/xml or application/json

Message-body

Empty

Response

Response-Code

  • 200 Successful: Request was successful.
  • 400 Bad request: The ID is empty or missing.
  • 403 Forbidden: Access restricted by role-based access control permissions.
  • 404 Not Found: There are no files associated with the job with the specified ID.
  • 500 Internal Server Error: Exception occurred.

Response-Header

Name

Value

Content-Type

application/xml or application/json

Message-body

Success Message

If successful, returns a list of files associated with the job. Files are separated by a semi-colon(;).

Note: For security reasons, does not return hidden files. Files starting with a period(.) are filtered out.
Failure Message

If not successful, returns an error message.

For additional information, refer to the schema file ./schemas/jobs/error.xsd.

<error>
  <message>
     %s
  </message>
</error>

Example: Get the list of files associated with job with ID 221


# Request
GET /<context_path>/ws/jobfiles/221 HTTP/1.1
Host: www.example.org

# Response
200 Successful
Content-Type: application/xml;

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Message>
<message>PAC Server*/opt/pac/gui/3.0/bin/mCommonLoader.sh*FILE*1989*true;PAC Serv-er*/opt/pac/gui/3.0/bin/mysqltools.sh*FILE*14057*true;PAC Serv-er*/opt/pac/gui/3.0/bin/nls*DIR*0*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pac_api.py*FILE*40721*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pac_api.pyc*FILE*36218*true;
PAC Serv-er*/opt/pac/gui/3.0/bin/pacclient.py*FILE*24868*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pacuninstall.sh*FILE*10402*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pmcadmin*FILE*57003*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pmc_daemons.sh*FILE*3478*true;PAC Serv-er*/opt/pac/gui/3.0/bin/pmcremoverc.sh*FILE*3686*true;
PAC Serv-er*/opt/pac/gui/3.0/bin/pmcsetrc.sh*FILE*5140*true;PAC Serv-er*/opt/pac/gui/3.0/bin/profile.txt*FILE*203*true;PAC Serv-er*/opt/pac/gui/3.0/bin/rackconfig*FILE*1651*true;PAC Serv-er*/opt/pac/gui/3.0/bin/switchlsf*FILE*24351*true;PAC Serv-er*/opt/pac/gui/3.0/bin/tableauconfig.sh*FILE*13610*true;
</message>
</Message>