GET /katello/api/host_collections/:id
Mostra un insieme di host

Parametri

Nome parametro Descrizione
id
richiesto

Id dell'insieme di host

Validations:

  • Must be a number.


GET /katello/api/host_collections
Elenca gli insiemi di host

GET /katello/api/organizations/:organization_id/host_collections
Elenca gli insiemi di host all'interno di una organizzazione

GET /katello/api/activation_keys/:activation_key_id/host_collections
Elenca gli insiemi di host in una chiave di attivazione

Parametri

Nome parametro Descrizione
search
opzionale

Cerca stringa

Validations:

  • String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

order
opzionale

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opzionale

Indica se mostrare tutti i risultati

Validations:

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

sort
opzionale

Versione hash del parametro 'order'

Validations:

  • Hash

sort[by]
opzionale

Campo nel quale ordinare i risultati

Validations:

  • String

sort[order]
opzionale

Come ordinare i risultati (es. ASC per ascendente)

Validations:

  • String

organization_id
opzionale

identificatore organizzazione

Validations:

  • Must be a number.

name
opzionale

nome insieme di host da usare per filtrare

Validations:

  • String

activation_key_id
opzionale

identificatore chiave di attivazione

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

host_id
opzionale

Filter products by host id

Validations:

  • Must be a number.

available_for
opzionale

Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported.

Validations:

  • String


POST /katello/api/host_collections
Crea un insieme di host

POST /katello/api/organizations/:organization_id/host_collections
Crea un insieme di host

Parametri

Nome parametro Descrizione
organization_id
richiesto

identificatore organizzazione

Validations:

  • Must be a number.

name
richiesto

Nome insieme di host

Validations:

  • String

description
opzionale

Validations:

  • String

host_ids
opzionale

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opzionale

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opzionale

Whether or not the host collection may have unlimited hosts

Validations:

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


PUT /katello/api/host_collections/:id
Aggiorna un insieme di host

Parametri

Nome parametro Descrizione
id
richiesto

Id dell'insieme di host

Validations:

  • Must be a number.

name
opzionale

Nome insieme di host

Validations:

  • String

description
opzionale

Validations:

  • String

host_ids
opzionale

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opzionale

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opzionale

Whether or not the host collection may have unlimited hosts

Validations:

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


PUT /katello/api/host_collections/:id/add_hosts
Add host to the host collection

Parametri

Nome parametro Descrizione
id
richiesto

Id dell'insieme di host

Validations:

  • Must be a number.

host_ids
opzionale

Array of host ids

Validations:

  • Must be an array of any type


PUT /katello/api/host_collections/:id/remove_hosts
Remove hosts from the host collection

Parametri

Nome parametro Descrizione
id
richiesto

Id dell'insieme di host

Validations:

  • Must be a number.

host_ids
opzionale

Array of host ids

Validations:

  • Must be an array of any type


DELETE /katello/api/host_collections/:id
Elimina un insieme di host

Parametri

Nome parametro Descrizione
id
richiesto

Id dell'insieme di host

Validations:

  • Must be a number.


POST /katello/api/host_collections/:id/copy
Esegui una copia di un insieme di host

Parametri

Nome parametro Descrizione
id
richiesto

ID dell'insieme di host

Validations:

  • Must be a number.

name
richiesto

Nuovo nome per l'insieme di host

Validations:

  • String