Get Job Info
Get Job Info
Get information about a specific job.
HTTP Request
GET /jobs/job_id/info
Optional Parameters
Name | Type | Description |
---|---|---|
fields | array | Specify which fields to include in the response. Possible values are: id, name, user_tag, priority, status, substatus, progress, creation_time, start_time, end_time, expiration_time, and error. Example: ["id", "progress"] |
Get Job Info Example
- curl
- JavaScript
- Response
$ curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/jobs/12345/info \
-G \
-d fields[]=id \
-d fields[]=progress \
-H "X-Hybrik-Sapiauth: api_auth_token" \
-H "X-Hybrik-Compliance: 20220412"
//Get job info for Job #12345
hybrik_api.call_api('GET', '/jobs/12345/info', {
fields: [
"id",
"name",
"progress",
"status",
"start_time",
"end_time"
]
})
{
"id": "12345",
"name": "Fifth Element, Web Streaming",
"progress": 42,
"status": "running",
"start_time": "2022-01-01T12:00:00Z",
"end_time": "2022-01-01T12:10:30Z"
}