Get Job Result
Get Job Result
This gets the job result in JSON form after a job completes, including whether the job was successful or failed. Any errors (including recoverable errors) will be listed in the "errors" array. Details about each task will be included in the JSON. The result JSON can be quite large depending on the number of tasks.
HTTP Request
GET /jobs/job_id/result
Get Job Result Example
- curl
- JavaScript
- Response
$ curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/jobs/123435/result \
-H "X-Hybrik-Sapiauth: api_auth_token" \
-H "X-Hybrik-Compliance: 20220412"
//Get job result for Job #12345
hybrik_api.call_api('GET', '/jobs/12345/result')
{
"errors": [],
"job": {
"id": 12345,
"is_api_job": 1,
"priority": 100,
"creation_time": "2022-11-11T23:30:51.000Z",
"expiration_time": "2022-12-11T23:30:52.000Z",
"user_tag": null,
"status": "completed",
"render_status": "completed",
"task_count": 1,
"progress": 100,
"name": "Transcode Job: s3:/my_bucket/my_folder/my_file.mp4",
"first_started": "2022-11-11T23:31:21.000Z",
"last_completed": "2022-11-11T23:31:29.000Z"
},
"tasks": [
{
"id": 2196469,
"priority": 100,
"name": "Transcode Job: s3:/my_bucket/my_folder/my_file.mp4",
"retry_count": -1,
"status": "completed",
"assigned": "2022-11-11T23:30:51.000Z",
"completed": "2022-11-11T23:30:51.000Z",
/* information about each task here */
}