Subscriptions management.
GET /katello/api/organizations/114267492/subscriptions.csv 200 Pool Id Number,Subscription Id,Name,Pool Id,Organization Id,Sockets,Cores,Start Date,End Date,Consumed,Quantity,Account Number,Contract Number,Support Level,RAM,Stacking Id,Multi Entitlement,Type,Product Id,Unmapped Guest,Virt Only,Requires Virt Who,Upstream 128914721,904941504,basic subscription,abc123,114267492,2,2,2011-10-11 04:00:00 UTC,2040-01-01 04:59:59 UTC,1,10,12400203,123403949,all hands on deck,2,stack8473,true,normal,,false,false,true,true 738793911,655398011,other subscription,xyz123,114267492,3,4,2011-10-11 04:00:00 UTC,2040-01-01 04:59:59 UTC,10,100,84390203,38943940,all hands on deck,,stack8473,,,,false,false,false,true 786915709,406942667,custom subscription,xyz1234,114267492,3,4,2011-10-11 04:00:00 UTC,2040-01-01 04:59:59 UTC,10,100,84390203,38943940,all hands on deck,,,,,,false,false,false,false
Param name | Description |
---|---|
search
optional |
Search string Validations:
|
page
optional |
Page number, starting at 1 Validations:
|
per_page
optional |
Number of results per page to return Validations:
|
order
optional |
Sort field and order, eg. 'id DESC' Validations:
|
full_result
optional |
Whether or not to show all results Validations:
|
sort_by
optional |
Field to sort the results on Validations:
|
sort_order
optional |
How to order the sorted results (e.g. ASC for ascending) Validations:
|
organization_id
required |
Organization ID Validations:
|
host_id
optional |
id of a host Validations:
|
activation_key_id
optional |
Activation key ID Validations:
|
name
optional |
name of the subscription Validations:
|
available_for
optional |
Object to show subscriptions available for, either 'host' or 'activation_key' Validations:
|
match_host
optional |
Ignore subscriptions that are unavailable to the specified host Validations:
|
match_installed
optional |
Return subscriptions that match installed products of the specified host Validations:
|
no_overlap
optional |
Return subscriptions which do not overlap with a currently-attached subscription Validations:
|
GET /katello/api/organizations/114267492/subscriptions/128914721 200 { "arch": null, "description": null, "support_type": null, "roles": null, "usage": null, "addons": null, "id": 128914721, "cp_id": "abc123", "subscription_id": 904941504, "name": "basic subscription", "start_date": "2011-10-11 04:00:00 UTC", "end_date": "2040-01-01 04:59:59 UTC", "available": 9, "quantity": 10, "consumed": 1, "account_number": 12400203, "contract_number": 123403949, "support_level": "all hands on deck", "product_id": null, "sockets": 2, "cores": 2, "ram": 2, "instance_multiplier": 1, "stacking_id": "stack8473", "multi_entitlement": true, "type": "normal", "product_name": "basic subscription", "unmapped_guest": false, "virt_only": false, "virt_who": true, "upstream": true, "upstream_pool_id": "100", "hypervisor": { "id": 980190962, "name": "host1.example.com" }, "host_count": 1, "provided_products": [ { "id": 785257261, "name": "Fedora" }, { "id": 1073012828, "name": "Red Hat Linux" } ], "activation_keys": [ { "id": 713118017, "name": "DevKey", "release_version": null, "service_level": null, "environment": { "id": 292811013, "name": "Dev" }, "content_view": { "id": null, "name": null } } ] }
Param name | Description |
---|---|
organization_id
optional |
Organization identifier Validations:
|
id
required |
Subscription identifier Validations:
|
POST /katello/api/organizations/114267492/subscriptions/upload { "subscription": {} } 400 { "displayMessage": "No manifest file uploaded", "errors": [ "No manifest file uploaded" ] }
Param name | Description |
---|---|
organization_id
required |
Organization id Validations:
|
content
required |
Subscription manifest file Validations:
|
PUT /katello/api/organizations/114267492/subscriptions/refresh_manifest { "subscription": {} } 202 { "id": null, "label": null, "pending": null, "username": null, "started_at": null, "ended_at": null, "state": null, "result": null, "progress": null, "input": null, "output": {}, "humanized": null, "cli_example": null, "available_actions": { "cancellable": null, "resumable": null } }
Param name | Description |
---|---|
organization_id
required |
Organization id Validations:
|
POST /katello/api/organizations/114267492/subscriptions/delete_manifest { "subscription": {} } 202 { "id": null, "label": null, "pending": null, "username": null, "started_at": null, "ended_at": null, "state": null, "result": null, "progress": null, "input": null, "output": {}, "humanized": null, "cli_example": null, "available_actions": { "cancellable": null, "resumable": null } }
Param name | Description |
---|---|
organization_id
required |
Organization id Validations:
|
GET /katello/api/organizations/114267492/subscriptions/manifest_history 200 { "statusMessage": "failed to create", "status": "FAILED" }
Param name | Description |
---|---|
organization_id
required |
Organization ID Validations:
|