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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer


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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer


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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer


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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer


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

Params

Param Name Description
name
Required

Name of the host

Validations:

  • String

uuid
Optional

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

Validations:

  • String

facts
Optional

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

Validations:

  • Hash

hypervisor_guest_uuids
Optional

UUIDs of the virtual guests from the host's hypervisor

Validations:

  • Must be an array of any type

installed_products
Optional

List of products installed on the host

Validations:

  • Must be an Array of nested elements

installed_products[product_id]
Optional

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]
Optional

Product name as listed from a host's installed products

Validations:

  • String

installed_products[arch]
Optional

Product architecture

Validations:

  • String

installed_products[version]
Optional

Product version

Validations:

  • String

release_version
Optional

컨텐츠 호스트의 릴리즈 버전

Validations:

  • String

service_level
Optional

auto-healing 프로세스의 서비스 레벨. 예: SELF-SUPPORT

Validations:

  • String

lifecycle_environment_id
Required

Lifecycle Environment ID

Validations:

  • Integer

content_view_id
Required

Content View ID

Validations:

  • Integer


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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer

subscriptions
Optional

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
Required

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
Optional

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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • Integer

subscriptions
Required

추가할 서브스크립션 어레이

Validations:

  • Must be an Array of nested elements

subscriptions[id]
Required

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
Required

추가할 서브스크립션 수

Validations:

  • Must be a number.


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

Params

Param Name Description
host_id
Required

Id of the content host

Validations:

  • String

content_label
Optional

컨텐츠 레이블

Validations:

  • String

value
Optional

Override to a boolean value or 'default'

Validations:

  • String

content_overrides
Optional

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
Required

컨텐츠 레이블

Validations:

  • String

content_overrides[value]
Optional

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

Validations:

  • String

content_overrides[name]
Optional

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

Validations:

  • String

content_overrides[remove]
Optional

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

Params

Param Name Description
host_id
Required

Id of the host

Validations:

  • String

content_access_mode_all
Optional

Get all content available, not just that provided by subscriptions

Validations:

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

content_access_mode_env
Optional

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
컨텐츠 호스트에 사용 가능한 릴리즈 표시

Params

Param Name Description
host_id
Required

id of host

Validations:

  • String