What about something like this? http :/pulp/api/v3/tasks/ state==failed started_at__gte=="2021-05-15T0:0:0.0Z" started_at__lte=="2021-05-20T0:0:0.0Z"
This would find the failed tasks that started between 2021-05-15 and 2021-05-20. David On Thu, May 20, 2021 at 4:00 PM Bin Li (BLOOMBERG/ 120 PARK) < [email protected]> wrote: > Just wondering if anyone knows how to use httpie to filter the result from > the api. > This query to get failed job works > http GET localhost/pulp/api/v3/tasks/?limit=2 state==failed > > But I could not find a way to get failed jobs in a date range. > The below query doesn't give me the correct result. > http GET localhost/pulp/api/v3/tasks/ > state==failed%20AND%20started_at%20%3E%3D%20"2021-05-15T0:0:0.0Z" > > Can I use httpie to filter or I have to pipe to jq? > _______________________________________________ > Pulp-list mailing list > [email protected] > https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________ Pulp-list mailing list [email protected] https://listman.redhat.com/mailman/listinfo/pulp-list
