Get the last execution history of a job
get
/iam/governance/selfservice/api/v1/scheduler/jobs/{jobName}/history/last
Returns the details about the last execution history of a job.
Request
Path Parameters
-
jobName: string
Name of the job
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : History
Type:
Show Source
object-
customStatus(optional):
string
-
errorMessage(optional):
string
-
exceptionObject(optional):
string
-
id(optional):
integer(int32)
-
jobEndTime(optional):
string(date-time)
Format: yyyy-MM-dd'T'HH:mm:ss'Z'
-
jobName(optional):
string
-
jobStartTime(optional):
string(date-time)
Format: yyyy-MM-dd'T'HH:mm:ss'Z'
-
params(optional):
array params
-
status(optional):
string
Allowed Values:
[ "STOPPED", "RUNNING", "INTERRUPTED", "FAILED" ]
400 Response
Invalid input
Examples
The following example shows how to retrieve the details of the last execution history of a job by submitting the GET request using cURL. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -i -X GET -u username:password / --header 'Accept: application/json' / --header 'Content-Type: application/json' / 'http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog Synchronization Job/history/last'
Example of Response Body
The following example shows the JSON response for a retrieval request for the details of the last execution history of a job:
{
"id": 20842,
"jobName": "Catalog Synchronization Job",
"infotype": "S",
"jobStartTime": "2022-08-23T07:58:51Z",
"jobEndTime": "2022-08-23T07:58:51Z",
"status": "STOPPED",
"params": {
"Process Entitlements": "true",
"Mode": "Incremental",
"Update Date": "",
"Process Roles": "false",
"Process Application Instances": "true",
"File Path": "",
"Updated Date": "08/23/2022 07:43:51"
}
}