Get basic and detailed job information by job ID (POST)
Description
URL |
scheme://domain:port/platform/ws/jobs/getbasicinfo scheme://domain:port/platform/ws/jobs/getfullinfo |
|
Description |
Gets basic or detailed information for jobs that have the specified job IDs. You can only get information about jobs submitted by the logged on user account. You must be a cluster administrator to get information about jobs submitted by other users. |
|
HTTP Method |
POST |
|
Parameters |
Name |
Description |
ids |
Mandatory. ID of the job for which to retrieve information. To specify multiple job IDs, separate with a comma(,). For example: 532,533. The list of IDs cannot include 0. |
Request
Request-Method |
POST |
|
Request-URI |
/platform/ws/jobs/getbasicinfo /platform/ws/jobs/getfullinfo |
|
Request-Header |
Name |
Value |
Accept |
application/xml or application/json |
|
Message-body |
ids=%s |
Response
Response-Code |
|
|
Response-Header |
Name |
Value |
Content-Type |
application/xml or application/json |
|
Message-body |
Success Message for getfullinfo | If successful, returns detailed information about jobs. For additional information, refer to the schema file ./schemas/jobs/jobs.xsd.
|
Success Message for getbasicinfo | If successful, returns basic information about jobs. For additional information, refer to the schema file ./schemas/jobs/pseudojob.xsd.
|
|
Failure Message | If not successful, returns an error message. For additional information, refer to the schema file ./schemas/jobs/error.xsd.
|
Example: Get basic information about jobs 236, 237 and 289
# Request
POST /platform/ws/jobs/getbasicinfo HTTP/1.1
Host: www.example.org
ids=236,237,289
# Response
200 Successful
Content-Type: application/xml;
<jobs total=”3”>
<pseudoJob>
<atom:link rel="self"
href="http:// www.example.org/platfom/ws/jobs/236"/>
<id>236</id>
…
</pseudoJob>
…
<jobs>
Example: Get detailed information for jobs 236, 237 and 289
# Request
POST /platform/ws/jobs/getfulinfo HTTP/1.1
Host: www.example.org
ids=236,237,289
# Response
200 Successful
Content-Type: application/xml;
<jobs total=”3”>
<job>
<atom:link rel="self"
href="http:// www.example.org/platfom/ws/jobs/236"/>
<id>236</id>
…
</job>
…
<jobs>