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

Params

Param Name Description
id
Required

Id dell'insieme di host

Validations:

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


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

Params

Param Name Description
search
Optional

Cerca stringa

Validations:

  • String

page
Optional

Numero pagina, iniziando da 1

Validations:

  • number.

per_page
Optional

Numero di risultati per pagina da ritornare

Validations:

  • number.

order
Optional

Campo e ordine per la ricerca, es. 'nome DISC'

Validations:

  • String

full_results
Optional

Indica se mostrare tutti i risultati

Validations:

  • boolean

sort
Optional

Versione hash del parametro 'order'

Validations:

  • Hash

sort[by]
Optional

Campo nel quale ordinare i risultati

Validations:

  • String

sort[order]
Optional

Come ordinare i risultati (es. ASC per ascendente)

Validations:

  • String

organization_id
Optional

identificatore organizzazione

Validations:

  • number.

name
Optional

nome insieme di host da usare per filtrare

Validations:

  • String

activation_key_id
Optional

identificatore chiave di attivazione

Validations:

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

host_id
Optional

Filter products by host id

Validations:

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

available_for
Optional

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

Params

Param Name Description
organization_id
Required

identificatore organizzazione

Validations:

  • number.

name
Required

Nome insieme di host

Validations:

  • String

description
Optional

Validations:

  • String

host_ids
Optional

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
Optional

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
Optional

Whether or not the host collection may have unlimited hosts

Validations:

  • boolean


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

Params

Param Name Description
id
Required

Id dell'insieme di host

Validations:

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

name
Optional

Nome insieme di host

Validations:

  • String

description
Optional

Validations:

  • String

host_ids
Optional

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
Optional

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
Optional

Whether or not the host collection may have unlimited hosts

Validations:

  • boolean


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

Params

Param Name Description
id
Required

Id dell'insieme di host

Validations:

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

host_ids
Optional

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

Params

Param Name Description
id
Required

Id dell'insieme di host

Validations:

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

host_ids
Optional

Array of host ids

Validations:

  • Must be an array of any type


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

Params

Param Name Description
id
Required

Id dell'insieme di host

Validations:

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


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

Params

Param Name Description
id
Required

ID dell'insieme di host

Validations:

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

name
Required

Nuovo nome per l'insieme di host

Validations:

  • String