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
選填

auto-healing 程序的服務等級,例如 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