Red Hat subscriptions management platform.


GET /katello/api/organizations/:organization_id/upstream_subscriptions
List available subscriptions from Red Hat Subscription Management

Параметры

Имя параметра Описание
organization_id
обязательно

ID организации

Validations:

  • Must be a number.

page
необязательно

Номер страницы, начиная с 1

Validations:

  • Must be a number.

per_page
необязательно

Number of results per page to return.

Validations:

  • Must be a number.

order
необязательно

The order to sort the results in. ['asc', 'desc'] Defaults to 'desc'.

Validations:

  • String

sort_by
необязательно

The field to sort the data by. Defaults to the created date.

Validations:

  • String

pool_ids
необязательно

Return only the upstream pools which map to the given Katello pool IDs

Validations:

  • Must be an array of any type

quantities_only
необязательно

Only returns id and quantity fields

Validations:

  • Must be one of: true, false, 1, 0

attachable
необязательно

Return only subscriptions which can be attached to the upstream allocation

Validations:

  • Must be one of: true, false, 1, 0


PUT /katello/api/organizations/:organization_id/upstream_subscriptions
Update the quantity of one or more subscriptions on an upstream allocation

Параметры

Имя параметра Описание
organization_id
обязательно

ID организации

Validations:

  • Must be a number.

pools
обязательно

Array of Pools to be updated. Only pools originating upstream are accepted.

Validations:

  • Must be an Array of nested elements

pools[id]
обязательно

Katello ID of local pool to update

Validations:

  • String

pools[quantity]
обязательно

Desired quantity of the pool

Validations:

  • Integer


DELETE /katello/api/organizations/:organization_id/upstream_subscriptions
Remove one or more subscriptions from an upstream subscription allocation

Параметры

Имя параметра Описание
organization_id
обязательно

ID организации

Validations:

  • Must be a number.

pool_ids
обязательно

Array of local pool IDs. Only pools originating upstream are accepted.

Validations:

  • Must be an array of any type


POST /katello/api/organizations/:organization_id/upstream_subscriptions
Add subscriptions consumed by a manifest from Red Hat Subscription Management

Параметры

Имя параметра Описание
pools
обязательно

Array of pools to add

Validations:

  • Must be an Array of nested elements

pools[id]
обязательно

Candlepin ID of pool to add

Validations:

  • String

pools[quantity]
обязательно

Quantity of entitlements to bind

Validations:

  • Must be a number.

organization_id
обязательно

ID организации

Validations:

  • Must be a number.