GET /api/hosts/:host_id/subscriptions
List a host's subscriptions

Параметры

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

Id of the host

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/auto_attach
Trigger an auto-attach of subscriptions

Параметры

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

Id of the host

Validations:

  • Integer


GET /api/hosts/:host_id/subscriptions/events
List subscription events for the host

Параметры

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

Id of the host

Validations:

  • Integer


DELETE /api/hosts/:host_id/subscriptions
Unregister the host as a subscription consumer

Параметры

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

Id of the host

Validations:

  • Integer


POST /api/hosts/subscriptions
Register a host with subscription and information.

Параметры

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

Name of the host

Validations:

  • String

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

UUID to use for registered host, random uuid is generated if not provided

Validations:

  • String

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

Key-value hash of subscription-manager facts, nesting uses a period delimiter (.)

Validations:

  • Hash

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

UUIDs of the virtual guests from the host's hypervisor

Validations:

  • Must be an array of any type

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

List of products installed on the host

Validations:

  • Must be an Array of nested elements

installed_products[product_id]
необязательно

Product id as listed from a host's installed products, this is not the same product id as the products api returns

Validations:

  • String

installed_products[product_name]
необязательно

Product name as listed from a host's installed products

Validations:

  • String

installed_products[arch]
необязательно

Product architecture

Validations:

  • String

installed_products[version]
необязательно

Product version

Validations:

  • String

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

Версия для узла содержимого

Validations:

  • String

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

Уровень обслуживания для автоматического восстановления (например, SELF-SUPPORT)

Validations:

  • String

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

Lifecycle Environment ID

Validations:

  • Integer

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

Content View ID

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/remove_subscriptions

Параметры

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

Id of the host

Validations:

  • Integer

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

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

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

Subscription Pool id

Validations:

  • String

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

If specified, remove the first instance of a subscription with matching id and quantity

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/add_subscriptions
Add a subscription to a host

Параметры

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

Id of the host

Validations:

  • Integer

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

Массив добавляемых подписок

Validations:

  • Must be an Array of nested elements

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

Subscription Pool id

Validations:

  • String

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

Число подписок для добавления

Validations:

  • Must be a number.


PUT /api/hosts/:host_id/subscriptions/content_override
Set content overrides for the host

Параметры

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

Id of the content host

Validations:

  • String

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

Метка содержимого

Validations:

  • String

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

Override to a boolean value or 'default'

Validations:

  • String

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

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
обязательно

Метка содержимого

Validations:

  • String

content_overrides[value]
необязательно

Override value. Provide a boolean value if name is 'enabled'

Validations:

  • String

content_overrides[name]
необязательно

Override key or name. Note if name is not provided the default name will be 'enabled'

Validations:

  • String

content_overrides[remove]
необязательно

Set true to remove an override and reset it to 'default'

Validations:

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


GET /api/hosts/:host_id/subscriptions/product_content
Get content and overrides for the host

Параметры

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

Id of the host

Validations:

  • String

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

Get all content available, not just that provided by subscriptions

Validations:

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

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

Limit content to just that available in the host's content view version

Validations:

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


GET /api/hosts/:host_id/subscriptions/available_release_versions
Показать версии для узла содержимого

Параметры

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

id of host

Validations:

  • String