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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer


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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer


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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer


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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer


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

Parametry

Nazwa parametru Opis
name
wymagany

Name of the host

Validations:

  • String

uuid
opcjonalny

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

Validations:

  • String

facts
opcjonalny

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

Validations:

  • Hash

hypervisor_guest_uuids
opcjonalny

UUIDs of the virtual guests from the host's hypervisor

Validations:

  • Must be an array of any type

installed_products
opcjonalny

List of products installed on the host

Validations:

  • Must be an Array of nested elements

installed_products[product_id]
opcjonalny

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

Product name as listed from a host's installed products

Validations:

  • String

installed_products[arch]
opcjonalny

Product architecture

Validations:

  • String

installed_products[version]
opcjonalny

Product version

Validations:

  • String

release_version
opcjonalny

Release version of the content host

Validations:

  • String

service_level
opcjonalny

A service level for auto-healing process, e.g. SELF-SUPPORT

Validations:

  • String

lifecycle_environment_id
wymagany

Lifecycle Environment ID

Validations:

  • Integer

content_view_id
wymagany

Content View ID

Validations:

  • Integer


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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer

subscriptions
opcjonalny

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
wymagany

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
opcjonalny

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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • Integer

subscriptions
wymagany

Array of subscriptions to add

Validations:

  • Must be an Array of nested elements

subscriptions[id]
wymagany

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
wymagany

Quantity of this subscriptions to add

Validations:

  • number.


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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the content host

Validations:

  • String

content_label
opcjonalny

Label of the content

Validations:

  • String

value
opcjonalny

Override to a boolean value or 'default'

Validations:

  • String

content_overrides
opcjonalny

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
wymagany

Label of the content

Validations:

  • String

content_overrides[value]
opcjonalny

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

Validations:

  • String

content_overrides[name]
opcjonalny

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

Validations:

  • String

content_overrides[remove]
opcjonalny

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

Parametry

Nazwa parametru Opis
host_id
wymagany

Id of the host

Validations:

  • String

content_access_mode_all
opcjonalny

Get all content available, not just that provided by subscriptions

Validations:

  • boolean

content_access_mode_env
opcjonalny

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

Validations:

  • boolean


GET /api/hosts/:host_id/subscriptions/available_release_versions
Show releases available for the content host

Parametry

Nazwa parametru Opis
host_id
wymagany

id of host

Validations:

  • String