How to get deployment counts on Ansible Tower? Is there any way to get deployment counts using ansible tower REST API?
Asked
Active
Viewed 73 times
0
-
Please explain what do you mean by deployment count? – Random_Automation Dec 16 '18 at 15:15
-
I mean last couple-off Jobs history list which was ran by user from some date to date and here don't want to mention any particular jobs, it should be date range or last jobs history list – srinu dodda Dec 17 '18 at 06:33
-
you can write a playbook to extract the data you need from tower API, but it may not be that easy to do so.I would rather prefer to get that data from tower database. – Random_Automation Dec 17 '18 at 06:49
-
Ok, Thanks. Could you please guide me how to get that data from tower database. Please provide me some examples – srinu dodda Dec 17 '18 at 07:03
1 Answers
0
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
.

U880D
- 8,601
- 6
- 24
- 40