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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer


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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer


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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer


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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer


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

Parâmentros

Nome parâmetro Descrição
name
requerido

Name of the host

Validations:

  • String

uuid
opcional

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

Validations:

  • String

facts
opcional

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

Validations:

  • Hash

hypervisor_guest_uuids
opcional

UUIDs of the virtual guests from the host's hypervisor

Validations:

  • Must be an array of any type

installed_products
opcional

List of products installed on the host

Validations:

  • Must be an Array of nested elements

installed_products[product_id]
opcional

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

Product name as listed from a host's installed products

Validations:

  • String

installed_products[arch]
opcional

Product architecture

Validations:

  • String

installed_products[version]
opcional

Product version

Validations:

  • String

release_version
opcional

Versão de lançamento do host de conteúdo

Validations:

  • String

service_level
opcional

Nível de serviço para processo de auto-reparo. Ex.: AUTO-SUPORTE

Validations:

  • String

lifecycle_environment_id
requerido

Lifecycle Environment ID

Validations:

  • Integer

content_view_id
requerido

Content View ID

Validations:

  • Integer


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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer

subscriptions
opcional

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
requerido

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
opcional

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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • Integer

subscriptions
requerido

Matriz de subscrições a adicionar

Validations:

  • Must be an Array of nested elements

subscriptions[id]
requerido

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
requerido

Quantidade destas inscrições para adicionar

Validations:

  • Must be a number.


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

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the content host

Validations:

  • String

content_label
opcional

Rótulo do Conteúdo

Validations:

  • String

value
opcional

Override to a boolean value or 'default'

Validations:

  • String

content_overrides
opcional

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
requerido

Rótulo do Conteúdo

Validations:

  • String

content_overrides[value]
opcional

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

Validations:

  • String

content_overrides[name]
opcional

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

Validations:

  • String

content_overrides[remove]
opcional

Set true to remove an override and reset it to 'default'

Validations:

  • Must be one of: true, false, 1, 0


GET /api/hosts/:host_id/subscriptions/product_content
Get content and overrides for the host

Parâmentros

Nome parâmetro Descrição
host_id
requerido

Id of the host

Validations:

  • String

content_access_mode_all
opcional

Get all content available, not just that provided by subscriptions

Validations:

  • Must be one of: true, false, 1, 0

content_access_mode_env
opcional

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

Validations:

  • Must be one of: true, false, 1, 0


GET /api/hosts/:host_id/subscriptions/available_release_versions
Exibir lançamentos disponiveis para um host de conteúdo

Parâmentros

Nome parâmetro Descrição
host_id
requerido

id of host

Validations:

  • String