Bug 860089
| Summary: | RFE: Allow tasks to be queries by specifying multiple ids | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Justin Sherrill <jsherril> |
| Component: | API/integration | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | Master | CC: | jason.dobies, mmccune, skarmark |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
| Target Release: | 2.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-04-08 15:58:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 854726 | ||
|
Description
Justin Sherrill
2012-09-24 22:43:57 UTC
ability added :) Pull Request submitted in branch jconnor-860089-rfe-task-query-by-id build: 2.1.0-0.20.beta This adds the ability to filter the REST API tasks collection with multiple 'id' fields in the GET request. For example: GET /pulp/api/v2/tasks/?id=<task id>&id=<task id>&id=<task id> Should only return the tasks with the ids listed, instead of all of the tasks on the system. verified [root@cloud-qe-8 ~]# rpm -q pulp-server pulp-server-2.1.0-0.26.beta.noarch [root@cloud-qe-8 ~]# curl -k -u admin:admin "https://localhost//pulp/api/v2/tasks/?id=0dee869b-65c8-45a7-93ec-2514c42e1fe4&id=7f5de9dc-4701-4435-92ba-b35188c45ba8" [{"task_group_id": null, "exception": null, "traceback": null, "task_id": "0dee869b-65c8-45a7-93ec-2514c42e1fe4", "call_request_tags": ["pulp:consumer:voyager", "pulp:content_unit:rpm", "pulp:action:profile_create"], "reasons": [], "start_time": "2013-04-01T16:47:30Z", "tags": ["pulp:consumer:voyager", "pulp:content_unit:rpm", "pulp:action:profile_create"], "state": "finished", "finish_time": "2013-04-01T16:47:30Z", "dependency_failures": {}, "schedule_id": null, "progress": {}, "call_request_group_id": null, "call_request_id": "0dee869b-65c8-45a7-93ec-2514c42e1fe4", "principal_login": "SYSTEM", "response": "accepted", "result": "****"}, {"task_group_id": "210b617f-8990-4f30-84dc-73fb47791e6b", "exception": null, "traceback": null, "task_id": "7f5de9dc-4701-4435-92ba-b35188c45ba8", "call_request_tags": ["pulp:consumer:client1", "pulp:repository:forge", "pulp:repository_distributor:puppet_distributor", "pulp:action:agent_unbind"], "reasons": [], "start_time": "2013-03-31T07:21:01Z", "tags": ["pulp:consumer:client1", "pulp:repository:forge", "pulp:repository_distributor:puppet_distributor", "pulp:action:agent_unbind"], "state": "running", "finish_time": null, "dependency_failures": {}, "schedule_id": null, "progress": {}, "call_request_group_id": "210b617f-8990-4f30-84dc-73fb47791e6b", "call_request_id": "7f5de9dc-4701-4435-92ba-b35188c45ba8", "principal_login": "admin", "response": "accepted", "result": null}][root@cloud-qe-8 ~]# Pulp 2.1 released http://www.pulpproject.org/2013/04/05/pulp-2-1-0-released/ |