PUT /api/hosts/bulk/add_host_collections
Add one or more host collections to one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

host_collection_ids
requis

Liste d'id de collection d'hôtes

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/remove_host_collections
Remove one or more host collections from one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

host_collection_ids
requis

Liste d'id de collection d'hôtes

Validations:

  • Must be an array of any type


POST /api/hosts/bulk/applicable_errata
Fetch applicable errata for a host.

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type


POST /api/hosts/bulk/installable_errata
Fetch installable errata for a host.

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/install_content
Install content on one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

content_type
requis

Le type de contenu. Les types suivants sont pris en charge : « paquet » (package), « groupe de paquets » (package_group) et « errata ».

Validations:

  • String

content
requis

Liste de contenu (ex : noms de paquets, noms de groupes de paquets ou id d'erratas)

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/update_content
Update content on one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

content_type
requis

Le type de contenu. Les types suivants sont pris en charge : « paquet » (package) et « groupe de paquets » (package_group).

Validations:

  • String

content
requis

Liste de contenu (ex : noms de paquet ou de groupe de paquets)

Validations:

  • Must be an array of any type

update_all
optionel

Updates all packages on the host(s)

Validations:

  • boolean


PUT /api/hosts/bulk/remove_content
Remove content on one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

content_type
requis

Le type de contenu. Les types suivants sont pris en charge : « paquet » (package) et « groupe de paquets » (package_group).

Validations:

  • String

content
requis

Liste de contenu (ex : noms de paquet ou de groupe de paquets)

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/destroy
Destroy one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/remove_subscriptions
Remove subscriptions from one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

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

Quantity of specified subscription to remove

Validations:

  • Integer


PUT /api/hosts/bulk/add_subscriptions
Add subscriptions to one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

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/bulk/auto_attach
Trigger an auto-attach of subscriptions on one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/content_overrides
Set content overrides to one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

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


PUT /api/hosts/bulk/environment_content_view
Assign the environment and content view to one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

environment_id
optionel

Validations:

  • Integer

content_view_id
optionel

Validations:

  • Integer


PUT /api/hosts/bulk/release_version
Assign the release version to one or more hosts

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

release_version
optionel

version du contenu

Validations:

  • String


POST /api/hosts/bulk/available_incremental_updates
Given a set of hosts and errata, lists the content view versions and environments that need updating.

Paramètres

Nom du paramètre Description
organization_id
requis

ID de l'organisation

Validations:

  • number.

included
requis

Validations:

  • Hash

included[search]
optionel , nil autorisé

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optionel , nil autorisé

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
requis

Validations:

  • Hash

excluded[ids]
optionel , nil autorisé

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type

errata_ids
optionel

Énumérer les ID d'errata

Validations:

  • Must be an array of any type