Skip to main content

List Jobs

List Jobs

Provides a filtered and ordered list of job information records.

HTTP Request

GET /jobs/job_id/info

Optional Parameters

NameTypeDescription
idsarrayA list of job ids, filtering the records to be returned.
default: []
fieldsarrayAn array specifying which fields to include in the response. Possible values are: id, name, user_tag, priority, status, substatus, progress, start_time, creation_time, end_time, expiration_time, error
default: ["id"]
filters/fieldstring
one of:"name" or "user_tag" or "status" or "substatus"
filters/valuesarrayThe job filter match values.
orderstringThe sort order of returned jobs
default: "asc"
one of:"asc" or "desc"
skipintegerSpecify number of records to omit in the result list
default: 0
sort_fieldstringThe sort field of returned jobs.
default: "id"
one of:"id" or "name" or "user_tag" or "priority" or "status" or "substatus" or "progress" or "creation_time" or "end_time" or "start_time" or "expiration_time"
takeintegerSpecify number of records to retrieve.
default: 100
Range: value <= 1000

List Jobs Example

$ curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/jobs/info \
-G \
-d ids[]=12345 \
-d ids[]=12346 \
-d ids[]=12347 \
-d "filters[0][field]=status&filters[0][values][]=active&filters[1][field]=status&filters[1][values][]=completed" \
-d fields[]=id \
-d fields[]=name \
-d fields[]=status \
-d fields[]=start_time \
-d fields[]=end_time \
-d fields[]=progress \
-d sort_field=id \
-d order=asc \
-H "X-Hybrik-Sapiauth: api_auth_token" \
-H "X-Hybrik-Compliance: 20220412"