Get Jobs for Status(Deprecated)

Purpose

Deprecated since version 9.1.0.0. Use these APIs instead: Get basic job information (GET), Get detailed job information by job ID (GET), Get basic and detailed job information by job ID (POST).

The get jobs for status service shows job information for jobs having the specified job status.

Request

HTTP Request Field Field format/value Notes®
HTTP Method GET
URL http://<hostname>:<port>/platform/webservice/pacclient/jobsforstatus/<status> <status>: one of: Running, Pending, Exit, Done, Suspended
Content-Type application/xml Also supports application/json
Accept text/xml Also supports application/json
Cookie platform_token=<token> <token>: returned from logon
Body Empty

Response

HTTP Response Field format/value Notes
Response code "200" - connection ok; otherwise connection failed
Success Message
<Jobs>
  <Job>
     <name>%s</name>
     <id>%s</id>
     <status>%s</status>
     <cmd>%s</cmd>
   </Job>
  <Job> …</Job>
…
</Jobs>
Failure Message

When no data is found, the following is returned:

<Jobs>
     <note>%s</note>
</Jobs>

When there is an error message, the returned XML is:

<Jobs>
     <errMsg>%s</errMsg>
</Jobs>
%s=return note message or error message