Actions
Feature #22781
closedRH Subscriptions: add GET API actions and reducers
Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Description
Add the API actions and reducers for the following APIs:
Request:
GET /katello/api/v2/organizations/1/subscriptions
Response:
{ "organization": {}, "total": 81, "subtotal": 81, "page": 1, "per_page": 20, "error": null, "search": null, "sort": { "by": "cp_id", "order": "asc" }, "results": [{ "id": 3, "cp_id": "ff8080815ea5ea44015ea617b1a5000b", "subscription_id": 2, "name": "zoo", "start_date": "2017-09-21 16:18:44 -0400", "end_date": "2047-09-14 15:18:44 -0500", "available": -2, "quantity": -1, "consumed": 1, "account_number": null, "contract_number": null, "support_level": null, "product_id": "853987721546", "sockets": null, "cores": null, "ram": null, "instance_multiplier": 1, "stacking_id": null, "multi_entitlement": null, "type": "NORMAL", "product_name": "zoo", "unmapped_guest": false, "virt_only": false, "virt_who": false }, { "id": 4, "cp_id": "ff8080815ea5ea44015ebb08e95a0024", "subscription_id": 3, "name": "hsdfhsdh", "start_date": "2017-09-25 17:54:36 -0400", "end_date": "2047-09-18 16:54:36 -0500", "available": -1, "quantity": -1, "consumed": 0, "account_number": null, "contract_number": null, "support_level": null, "product_id": "947637693017", "sockets": null, "cores": null, "ram": null, "instance_multiplier": 1, "stacking_id": null, "multi_entitlement": null, "type": "NORMAL", "product_name": "hsdfhsdh", "unmapped_guest": false, "virt_only": false, "virt_who": false }] }
GET /katello/api/v2/organizations/1/upstream_subscriptions
Response:
[ { "pool_id": "8a85f9813f14fe33013f81b33d820c7a", "quantity": 300, "start_date": "2011-10-11T04:00:00+0000", "end_date": "2022-01-01T04:59:59+0000", "contract_number": "2595500", "consumed": 300, "product_name": "Red Hat Satellite (Self-Supported)", "product_id": "SYS1198", "subscription_id": "2251811" }, ... ]
Updated by Walden Raines almost 7 years ago
- Related to Tracker #22365: Show Allocations on the Red Hat Subscriptions page added
Updated by Walden Raines almost 7 years ago
- Related to deleted (Tracker #22365: Show Allocations on the Red Hat Subscriptions page)
Updated by Walden Raines almost 7 years ago
- Blocks Tracker #22365: Show Allocations on the Red Hat Subscriptions page added
Updated by Walden Raines almost 7 years ago
These two APIs will be tied together with the following:
"upstreamPoolId": "8a85f98153a7bdce0153aa46b4717ee6", "upstreamEntitlementId": "8a85f9815839d62901583f3ee930042d", "upstreamConsumerId": "a7c5b09d-ed99-412c-980c-7be32988ab2d",
Updated by Walden Raines almost 7 years ago
- Blocks Feature #22819: RH Subscriptions: add page for adding subscriptions to an allocation added
Updated by The Foreman Bot almost 7 years ago
- Pull request https://github.com/Katello/katello/pull/7230 added
Updated by Walden Raines almost 7 years ago
- Status changed from New to Ready For Testing
Updated by Walden Raines almost 7 years ago
- Target version changed from 250 to 253
Updated by Walden Raines almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|6dbf23520e6eba147860cc63d9b122990dc23213.
Actions