GET /api/hosts/:host_id/subscriptions
主机的订阅列表

参数

参数名字 描述
host_id
必填

主机 id

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/auto_attach
触发订阅的自动附加

参数

参数名字 描述
host_id
必填

主机 id

Validations:

  • Integer


GET /api/hosts/:host_id/subscriptions/events
列出该主机的订阅活动

参数

参数名字 描述
host_id
必填

主机 id

Validations:

  • Integer


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

参数

参数名字 描述
host_id
必填

主机 id

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

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

Validations:

  • Integer

subscriptions
选填

要删除的订阅阵列

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

订阅池 id

Validations:

  • String

subscriptions[quantity]
选填

如指定,请删除有匹配 id 及数量的订阅中的第一个实例。

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/add_subscriptions
在主机中添加订阅

参数

参数名字 描述
host_id
必填

主机 id

Validations:

  • Integer

subscriptions
必填

要添加的订阅阵列

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

订阅池 id

Validations:

  • String

subscriptions[quantity]
必填

要在这个订阅中添加的数量

Validations:

  • number.


PUT /api/hosts/:host_id/subscriptions/content_override
为该主机设置内容替代

参数

参数名字 描述
host_id
必填

内容主机 id

Validations:

  • String

content_label
必填

内容标签

Validations:

  • String

value
必填

替代为 0/1,或 'default'

Validations:

  • Must be one of: 0, 1, default.


GET /api/hosts/:host_id/subscriptions/product_content
获取该主机的内容及替代

参数

参数名字 描述
host_id
必填

主机 id

Validations:

  • String