Filter AWX API response with timestamp

27 views
Skip to first unread message

Zafar Iqbal

unread,
Nov 14, 2022, 10:30:28 AM11/14/22
to awx-p...@googlegroups.com
Hi,
We need to find the list of failed jobs in the last one hour through the AWX API.

We have tried multiple combinations and always get a list of all the failed jobs.

Has anyone tried this and have any examples to share?
Thanks





AWX Project

unread,
Nov 16, 2022, 2:45:24 PM11/16/22
to AWX Project
Have you tried a query like this: https://localhost:8043/api/v2/jobs/?finished__gt=2022-10-26T17:02:09.833133Z&status=failed
Granted you will need to do a calculation to get now - 1h but that filter should get failed jobs since the timestamp.
Let us know if that works or not.

-The AWX Team
Reply all
Reply to author
Forward
0 new messages