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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer


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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer


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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer


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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer


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

Paramètres

Nom du paramètre Description
name
requis

Name of the host

Validations:

  • String

uuid
optionel

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

Validations:

  • String

facts
optionel

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

Validations:

  • Hash

hypervisor_guest_uuids
optionel

UUIDs of the virtual guests from the host's hypervisor

Validations:

  • Must be an array of any type

installed_products
optionel

List of products installed on the host

Validations:

  • Must be an Array of nested elements

installed_products[product_id]
optionel

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

Product name as listed from a host's installed products

Validations:

  • String

installed_products[arch]
optionel

Product architecture

Validations:

  • String

installed_products[version]
optionel

Product version

Validations:

  • String

release_version
optionel

Version de l'hôte de contenu

Validations:

  • String

service_level
optionel

Un niveau de service pour le processus de auto-healing, ex : SELF-SUPPORT

Validations:

  • String

lifecycle_environment_id
requis

Lifecycle Environment ID

Validations:

  • Integer

content_view_id
requis

Content View ID

Validations:

  • Integer


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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer

subscriptions
optionel

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
requis

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
optionel

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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • Integer

subscriptions
requis

Ensemble d'abonnements à ajouter

Validations:

  • Must be an Array of nested elements

subscriptions[id]
requis

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
requis

Quantité de cet abonnement à ajouter

Validations:

  • number.


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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the content host

Validations:

  • String

content_label
optionel

Étiquette du contenu

Validations:

  • String

value
optionel

Override to a boolean value or 'default'

Validations:

  • String

content_overrides
optionel

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
requis

Étiquette du contenu

Validations:

  • String

content_overrides[value]
optionel

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

Validations:

  • String

content_overrides[name]
optionel

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

Validations:

  • String

content_overrides[remove]
optionel

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

Paramètres

Nom du paramètre Description
host_id
requis

Id of the host

Validations:

  • String

content_access_mode_all
optionel

Get all content available, not just that provided by subscriptions

Validations:

  • boolean

content_access_mode_env
optionel

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

Validations:

  • boolean


GET /api/hosts/:host_id/subscriptions/available_release_versions
Afficher les versions disponibles pour l'hôte de contenu

Paramètres

Nom du paramètre Description
host_id
requis

id of host

Validations:

  • String