[Pulp-list] httpie query pulp 3 api

David Davis daviddavis at redhat.com
Thu May 20 20:28:40 UTC 2021


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) <
bli111 at bloomberg.net> 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
> Pulp-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/pulp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210520/0f245780/attachment.htm>


More information about the Pulp-list mailing list