This is more of a tower question but I can’t find the answer in their documentation, so I thought maybe someone here would know.
How do I search for jobs initiated by a particular user?
This is more of a tower question but I can’t find the answer in their documentation, so I thought maybe someone here would know.
How do I search for jobs initiated by a particular user?
Hi nfwlpw,
Here are the docs for this: https://docs.ansible.com/ansible-tower/3.3.0/html/userguide/search_sort.html#searching-tips. Also, if you go to the job detail page (/api/v2/jobs/) in the API and click on the ?
next to the name of the page “Job List”, there is some useful information about filtering querysets.
I believe the one you are looking for is *https://<awx-host>/api/v2/jobs/?created_by__username__contains=<username>*
, where is the user whose jobs you want to see. Alternatively, you can also use the search sort tool in the Jobs tab in the UI. The syntax there is different though: *created_by.username:admin
.*
Thanks,
Christian