<div dir="ltr">What about something like this?<div><br></div><div>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"</div><div><br></div><div>This would find the failed tasks that started between 2021-05-15 and 2021-05-20.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>David</div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 20, 2021 at 4:00 PM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net">bli111@bloomberg.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">Just wondering if anyone knows how to use httpie to filter the result from the api.<div>This query to get failed job works<br><div>http GET localhost/pulp/api/v3/tasks/?limit=2  state==failed</div><div><br></div><div>But I could not find a way to get failed jobs in a date range.</div><div>The below query doesn't give me the correct result.</div><div>http GET localhost/pulp/api/v3/tasks/ state==failed%20AND%20started_at%20%3E%3D%20"2021-05-15T0:0:0.0Z"</div></div><div><br></div><div>Can I use httpie to filter or I have to pipe to jq?</div></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://listman.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>