GET /katello/api/host_collections/:id
Exibir uma coleção de host

Parâmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

Validations:

  • Must be a number.


GET /katello/api/host_collections
Listar coleções de host

GET /katello/api/organizations/:organization_id/host_collections
Listar coleções de host dentro de uma organização

GET /katello/api/activation_keys/:activation_key_id/host_collections
Listar Coleções de Host em uma Chave de Ativação

Parâmentros

Nome parâmetro Descrição
search
opcional

Buscar faixa

Validations:

  • String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.

order
opcional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcional

Se deve ou não exibir todos os resultados

Validations:

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

sort
opcional

Versão Hash de param de “ordem”

Validations:

  • Hash

sort[by]
opcional

Campo para classificar os resultados

Validations:

  • String

sort[order]
opcional

Como encomendar os resultados classificados (por exemplo ASC para ascendente)

Validations:

  • String

organization_id
opcional

identificador da organização

Validations:

  • Must be a number.

name
opcional

filtrar por nome de coleção de host

Validations:

  • String

activation_key_id
opcional

identificador da chave de ativação

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
Criar uma coleção de host

POST /katello/api/organizations/:organization_id/host_collections
Criar uma coleção de host

Parâmentros

Nome parâmetro Descrição
organization_id
requerido

identificador da organização

Validations:

  • Must be a number.

name
requerido

Nome da Coleção do host

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
Atualizar uma coleção de host

Parâmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

Validations:

  • Must be a number.

name
opcional

Nome da Coleção do host

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âmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

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âmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

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 uma coleção de host

Parâmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

Validations:

  • Must be a number.


POST /katello/api/host_collections/:id/copy
Fazer uma cópia de uma coleção de host

Parâmentros

Nome parâmetro Descrição
id
requerido

ID da coleção do host

Validations:

  • Must be a number.

name
requerido

Novo nome de coleção de host

Validations:

  • String