Count Jobs
Count Jobs
Provides the count of jobs of the specified type(s).
HTTP Request
GET /jobs/count
Optional Parameters
Name | Type | Description |
---|---|---|
filters/field | string | The type of field to filter on. one of: "name" or "user_tag" or "status" or "substatus" |
filters/values | array | Filter match values. |
Count Jobs Example
- curl
- JavaScript
- Response
$ curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/curl -u OAPI_KEY:OAPI_SECRET https://api-demo.hybrik.com/v1/jobs/count \
-G \
-d filters[0][field]=status \
-d filters[0][values][]=active \
-H "X-Hybrik-Sapiauth: xxx" \
-H "X-Hybrik-Compliance: 20220412"
//Get a count of all the jobs ("queued", "active", "completed", "failed")
hybrik_api.call_api('GET', '/jobs/count')
{
"count": 107
}