[Pulp-list] httpie query pulp 3 api

Bin Li (BLOOMBERG/ 120 PARK) bli111 at bloomberg.net
Thu May 20 21:32:28 UTC 2021


Thanks David. It worked perfectly.

From: daviddavis at redhat.com At: 05/20/21 16:29:21To:  Bin Li (BLOOMBERG/ 120 PARK ) 
Cc:  pulp-list at redhat.com
Subject: Re: [Pulp-list] httpie query pulp 3 api

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/d51dc603/attachment.htm>


More information about the Pulp-list mailing list