Red Hat subscriptions management platform.
GET /katello/api/organizations/114267492/upstream_subscriptions
200
{
"total": null,
"subtotal": null,
"selectable": null,
"page": "3",
"per_page": "7",
"error": null,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{}
]
}
| Param name | Description |
|---|---|
|
organization_id
required |
Organization ID Validations:
|
|
page
optional |
Page number, starting at 1 Validations:
|
|
per_page
optional |
Number of results per page to return. Validations:
|
|
order
optional |
The order to sort the results in. ['asc', 'desc'] Defaults to 'desc'. Validations:
|
|
sort_by
optional |
The field to sort the data by. Defaults to the created date. Validations:
|
|
pool_ids
optional |
Return only the upstream pools which map to the given Katello pool IDs Validations:
|
|
quantities_only
optional |
Only returns id and quantity fields Validations:
|
|
attachable
optional |
Return only subscriptions which can be attached to the upstream allocation Validations:
|
PUT /katello/api/organizations/114267492/upstream_subscriptions
{
"pools": [],
"upstream_subscription": {
"pools": []
}
}
204
| Param name | Description |
|---|---|
|
organization_id
required |
Organization ID Validations:
|
|
pools
required |
Array of Pools to be updated. Only pools originating upstream are accepted. Validations:
|
|
pools[id]
required |
Katello ID of local pool to update Validations:
|
|
pools[quantity]
required |
Desired quantity of the pool Validations:
|
DELETE /katello/api/organizations/114267492/upstream_subscriptions
{
"pool_ids": [],
"upstream_subscription": {
"pool_ids": []
}
}
204
| Param name | Description |
|---|---|
|
organization_id
required |
Organization ID Validations:
|
|
pool_ids
required |
Array of local pool IDs. Only pools originating upstream are accepted. Validations:
|
POST /katello/api/organizations/114267492/upstream_subscriptions
{
"pools": [
{
"id": "1234abcd",
"quantity": 3
}
],
"upstream_subscription": {
"pools": [
{
"id": "1234abcd",
"quantity": 3
}
]
}
}
204
| Param name | Description |
|---|---|
|
pools
required |
Array of pools to add Validations:
|
|
pools[id]
required |
Candlepin ID of pool to add Validations:
|
|
pools[quantity]
required |
Quantity of entitlements to bind Validations:
|
|
organization_id
required |
Organization ID Validations:
|