GET /katello/api/host_collections/:id
Mostrar una recopilación de hosts

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.


GET /katello/api/host_collections
Mostrar recopilaciones de hosts

GET /katello/api/organizations/:organization_id/host_collections
Lista de colecciones de hosts dentro de una organización

GET /katello/api/activation_keys/:activation_key_id/host_collections
Lista de colecciones de hosts en una llave de activación

Parámetros

Nombre del parámetro Descripción
search
opcional

Buscar cadena

Validations:

  • String

page
opcional

Número de página, comenzando por 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • Must be a number.

order
opcional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcional

Si se muestran o no todos los resultados

Validations:

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

sort
opcional

Versión de hash del parámetro 'orden'

Validations:

  • Hash

sort[by]
opcional

Campo en el que ordenar los resultados

Validations:

  • String

sort[order]
opcional

Cómo ordenar los resultados clasificados (p. ej., ASC para orden ascendente)

Validations:

  • String

organization_id
opcional

identificador de la organización

Validations:

  • Must be a number.

name
opcional

nombre de colección de hosts que va a filtrar

Validations:

  • String

activation_key_id
opcional

identificador de clave de activación

Validations:

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

host_id
opcional

Filter products by host id

Validations:

  • Must be a number.

available_for
opcional

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
Crear una recopilación de hosts

POST /katello/api/organizations/:organization_id/host_collections
Crear una recopilación de hosts

Parámetros

Nombre del parámetro Descripción
organization_id
requerido

identificador de la organización

Validations:

  • Must be a number.

name
requerido

Nombre de recopilación de hosts

Validations:

  • String

description
opcional

Validations:

  • String

host_ids
opcional

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opcional

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opcional

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
Actualizar una recopilación de hosts

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.

name
opcional

Nombre de recopilación de hosts

Validations:

  • String

description
opcional

Validations:

  • String

host_ids
opcional

List of host ids to replace the hosts in host collection

Validations:

  • Must be an array of any type

max_hosts
opcional

Maximum number of hosts in the host collection

Validations:

  • Integer

unlimited_hosts
opcional

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

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.

host_ids
opcional

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

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.

host_ids
opcional

Array of host ids

Validations:

  • Must be an array of any type


DELETE /katello/api/host_collections/:id
Destruir una recopilación de hosts

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.


POST /katello/api/host_collections/:id/copy
Hacer una copia de una recopilación de hosts

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de la recopilación de hosts

Validations:

  • Must be a number.

name
requerido

Nuevo nombre de recopilación de hosts

Validations:

  • String