'Get deployments counts on Ansible Tower

How to get deployment counts on Ansible Tower? Is there any way to get deployment counts using ansible tower REST API?



Solution 1:[1]

In respect of your question and comment

... or last jobs history list ...

you could use according the Ansible Tower REST API and Jobs - List jobs something like

curl --silent -u "${ACCOUNT}:${PASSWORD}" https://${TOWER_URL}/api/v2/jobs/ | jq .

which provides also a Sorting and Searching option, in example ?order_by=name.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 U880D