Get history of all jobs

post

/services/rest/v1/jobs/history

Gets history of all the completed jobs.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Returns history of all the completed jobs in JSON format.
Body ()
Root Schema : schema
Back to Top

Examples

The following examples shows how to get the history of the jobs owned by a user by submitting a POST request on the REST resource using cURL.

curl -i \
     --header 'Authorization: Bearer <token>' \
     --header 'Content-Type: application/json' \
     --request POST -d '{"owner":"admin","ownerOperator":"Equals"}' 'https://hostname/xmlpserver/services/rest/v1/jobs/history?beginIdx=1'

Example of the Response Body

* Connection #0 to host hostname left intact
{"jobInfoList":{"item":[{"burstingJob":"false","created":"2023-05-09T03:57:16.035Z","deleted":"false","instanceId":"0","jobId":"35644","jobType":"Submit","lastUpdated":"2023-05-09T03:58:19.183Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-08-31T04:56:59Z","status":"T","userJobName":"future"},{"burstingJob":"false","created":"2023-05-05T17:13:39.204Z","deleted":"false","instanceId":"0","jobId":"2957","jobType":"Submit","lastUpdated":"2023-05-05T17:13:39.205Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T16:03:19.229Z","deleted":"false","instanceId":"0","jobId":"2956","jobType":"Submit","lastUpdated":"2023-05-05T16:03:19.229Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T16:01:04.651Z","deleted":"false","instanceId":"0","jobId":"2955","jobType":"Submit","lastUpdated":"2023-05-05T16:01:04.651Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T11:43:14.210Z","deleted":"false","instanceId":"0","jobId":"2954","jobType":"Submit","lastUpdated":"2023-05-05T11:43:14.210Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T11:40:01.719Z","deleted":"false","instanceId":"0","jobId":"2953","jobType":"Submit","lastUpdated":"2023-05-05T11:40:01.719Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T11:18:22.340Z","deleted":"false","instanceId":"0","jobId":"2952","jobType":"Submit","lastUpdated":"2023-05-05T11:18:22.340Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T10:49:48.967Z","deleted":"false","instanceId":"0","jobId":"2951","jobType":"Submit","lastUpdated":"2023-05-05T10:49:48.967Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T10:47:26.655Z","deleted":"false","instanceId":"0","jobId":"2950","jobType":"Submit","lastUpdated":"2023-05-05T10:47:26.655Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-05T10:34:24.997Z","deleted":"false","instanceId":"0","jobId":"2949","jobType":"Submit","lastUpdated":"2023-05-05T10:34:24.997Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-04T23:11:34.663Z","deleted":"false","instanceId":"0","jobId":"2944","jobType":"Submit","lastUpdated":"2023-05-04T23:11:34.663Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"},{"burstingJob":"false","created":"2023-05-04T23:09:24.359Z","deleted":"false","instanceId":"0","jobId":"2943","jobType":"Submit","lastUpdated":"2023-05-04T23:09:24.359Z","owner":"Admin","public":"false","reportUrl":"/~admin/Discrete Job Data Report.xdo","startDate":"2023-06-29T00:08:44Z","status":"H","userJobName":"12"}]}}

Get the history of jobs exactly matching or containing the owner name

The following shows how to get the history of jobs with the job owner name exactly matching or containing the name specified in the cURL command.

curl -i \
     --header 'Authorization: Bearer <token>' \
     --header 'Content-Type: application/json' \
     --request POST -d '{"owner":"weblogic"}' 'https://hostname/xmlpserver/services/rest/v1/jobs/history?beginIdx=1'

Get the history of jobs containing the owner name

The following shows how to get the history of jobs with the job owner name containing the name specified in the cURL command.

curl -i \
     --header 'Authorization: Bearer <token>' \
     --header 'Content-Type: application/json' \
     --request POST -d
        '{"owner":"weblogic","ownerOperator":"Contains"}' 'https://hostname/xmlpserver/services/rest/v1/jobs?beginIdx=1'

Get the history of jobs owned by a user

The following example shows how to get the history of jobs owned by a user by submitting a POST request on the REST resource using cURL. This command gets the history for all the jobs with the job owner name exactly matching the name specified in the command.

curl -i \
     --header 'Authorization: Bearer <token>' \
     --header 'Content-Type: application/json' \
     --request POST -d
        '{"owner":"weblogic2","ownerOperator":"Equals"}' 'https://hostname/xmlpserver/services/rest/v1/jobs?beginIdx=1'
Back to Top