Get Job Definition
Get Job Definition
Get the Hybrik JSON of the job specified by a job id.
HTTP Request
GET /jobs/job_id/definition
Get Jobs Definition Example
- curl
- JavaScript
- Response
$ curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/jobs/$JOB_ID/definition \
-H "X-Hybrik-Sapiauth: api_auth_token" \
-H "X-Hybrik-Compliance: YYYYMMDD"
//Get job definition for Job #12345
hybrik_api.call_api('GET', '/jobs/12345/definition')
{
"name": "My Job",
"priority": 100,
"payload": {
"elements": [
{
"uid": "source_file",
"kind": "source",
"payload": {
"kind": "asset_url",
"payload": {
"storage_provider": "s3",
"url": "s3://my_bucket/my_folder/my_file.mp4"
}
}
},
{
"uid": "transcode_task",
"kind": "transcode",
"task": {
"retry_method": "fail",
"tags": [
]
},
"payload": {
// transcode payload
}
}
],
"connections": [
{
"from": [
{
"element": "source_file"
}
],
"to": {
"success": [
{
"element": "transcode_task"
}
]
}
}
]
}
}