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" }, ... ]
Actions