Viewing Job Status using the Job Log ID in the REST Service URL
Use a GET request to view the details of a job by using the job log ID returned to your job invocation (POST) request.
To check the details of a job with the job log ID in a REST web service
In the browser, enter the RESTful web service link with a GET request. Example:
http://localhost:1101/onedataVVT/rest/onedatamd/Standard%20Project/JOB/import/IM_Location_Job
The following is a sample of REST response to your GET request.
Example:
{
"jobOutput": {
"status": "200",
"jobLogId": "6165",
"details": {
"jobName": "Rest_Imp_Job",
"jobId": "20981",
"jobStatus": "Completed Successfully. All the job steps in the job completed
successfully,"
"jobSteps": [
{
"jobStepName": "Imp_Test_upd_obj",
"jobStepId": "20982",
"message": "Total records inserted/updated : 0.<BR><BR>The process
finished successfully.<BR>",
"successRecordCount": "0",
"failedRecordCount": "0",
"fileName": "Job_Log_3532.log"
},
{
"jobStepName": "IM_JobStep_2",
"jobStepId": "21120",
"message": "Total records inserted/updated : 10.<BR><BR>The process
finished successfully.<BR>",
"successRecordCount": "0",
"failedRecordCount": "0",
"fileName": "Job_Log_3534.log"
}
]
}
}
}
If the job ID you provided is incorrect, the response includes the failure status message.
Example: Incorrect Job ID in job status response
{
"jobOutput": {
"status": "202",
"jobLogId": "6163",
"errorDetails": {
"errorMessage": "Cannot retrieve job information. Verify if the job token
is correct and retry."
}
}
}