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

release_version
Optional

Versione della release dell'host di contenuto

Validations:

  • String

service_level
Optional

Un livello di servizio per il processo auto-healing, es. 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

Insieme di sottoscrizioni da aggiungere

Validations:

  • Must be an Array of nested elements

subscriptions[id]
Required

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
Required

Quantità di questa sottoscrizione da aggiungere

Validations:

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

Etichetta del contenuto

Validations:

  • String

value
Required

Esegui override su 0/1, o 'default'

Validations:

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


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