GET /api/hosts/:host_id/subscriptions
Répertorier les abonnements d'un hôte

Params

Param Name Description
host_id
Required

Id de l'hôte

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/auto_attach
Déclenche Abonnements auto-attach

Params

Param Name Description
host_id
Required

Id de l'hôte

Validations:

  • Integer


GET /api/hosts/:host_id/subscriptions/events
Liste les événements d'abonnement pour un hôte donné

Params

Param Name Description
host_id
Required

Id de l'hôte

Validations:

  • Integer


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

Params

Param Name Description
host_id
Required

Id de l'hôte

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

Version de l'hôte de contenu

Validations:

  • String

service_level
Optional

Un niveau de service pour le processus de auto-healing, ex : 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 de l'hôte

Validations:

  • Integer

subscriptions
Optional

Ensemble d'abonnements à supprimer

Validations:

  • Must be an Array of nested elements

subscriptions[id]
Required

ID Pool Abonnement

Validations:

  • String

subscriptions[quantity]
Optional

Si spécifié, supprimer la première instance d'un abonnement avec la quantité et l'id correspondants

Validations:

  • Integer


PUT /api/hosts/:host_id/subscriptions/add_subscriptions
Ajouter un abonnement à un hôte

Params

Param Name Description
host_id
Required

Id de l'hôte

Validations:

  • Integer

subscriptions
Required

Ensemble d'abonnements à ajouter

Validations:

  • Must be an Array of nested elements

subscriptions[id]
Required

ID Pool Abonnement

Validations:

  • String

subscriptions[quantity]
Required

Quantité de cet abonnement à ajouter

Validations:

  • number.


PUT /api/hosts/:host_id/subscriptions/content_override
Définit la substitution de contenu pour un hôte

Params

Param Name Description
host_id
Required

Id de l'hôte de contenu

Validations:

  • String

content_label
Required

Étiquette du contenu

Validations:

  • String

value
Required

Rermplacer par 0/1 ou 'default'

Validations:

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


GET /api/hosts/:host_id/subscriptions/product_content
Obtenir la substitution de contenu pour un hôte

Params

Param Name Description
host_id
Required

Id de l'hôte

Validations:

  • String