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:

  • 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:

  • boolean


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:

  • boolean

content_access_mode_env
任意

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

Validations:

  • boolean


GET /api/hosts/:host_id/subscriptions/available_release_versions
コンテンツホストに利用可能なリリースを表示

パラメーター

パラメーター名 記述
host_id
必須

id of host

Validations:

  • String