GET /api/hostgroups
List all hostgroups.

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

organizar resultados

Validations:

  • Must be a String

page
opcional

paginar resultados

Validations:

  • Must be a String

per_page
opcional

número de entradas por solicitud

Validations:

  • Must be a String


GET /api/hostgroups/:id
Show a hostgroup.

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/hostgroups
Create an hostgroup.

Parámetros

Nombre del parámetro Descripción
hostgroup
requerido

Validations:

  • Must be a Hash

hostgroup[name]
requerido

Validations:

  • Must be a String

hostgroup[parent_id]
opcional

Validations:

  • Must be a number.

hostgroup[environment_id]
opcional

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
opcional

Validations:

  • Must be a number.

hostgroup[architecture_id]
opcional

Validations:

  • Must be a number.

hostgroup[medium_id]
opcional

Validations:

  • Must be a number.

hostgroup[ptable_id]
opcional

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
opcional

Validations:

  • Must be a number.

hostgroup[subnet_id]
opcional

Validations:

  • Must be a number.

hostgroup[domain_id]
opcional

Validations:

  • Must be a number.

hostgroup[puppet_proxy_id]
opcional

Validations:

  • Must be a number.


PUT /api/hostgroups/:id
Update an hostgroup.

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

hostgroup
requerido

Validations:

  • Must be a Hash

hostgroup[name]
opcional

Validations:

  • Must be a String

hostgroup[parent_id]
opcional

Validations:

  • Must be a number.

hostgroup[environment_id]
opcional

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
opcional

Validations:

  • Must be a number.

hostgroup[architecture_id]
opcional

Validations:

  • Must be a number.

hostgroup[medium_id]
opcional

Validations:

  • Must be a number.

hostgroup[pxe_loader]
opcional

Opción de nombre de archivo DHCP

Validations:

  • Must be one of: None, PXELinux BIOS, PXELinux UEFI, Grub UEFI, Grub2 UEFI, Grub2 UEFI SecureBoot.

hostgroup[ptable_id]
opcional

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
opcional

Validations:

  • Must be a number.

hostgroup[subnet_id]
opcional

Validations:

  • Must be a number.

hostgroup[domain_id]
opcional

Validations:

  • Must be a number.

hostgroup[puppet_proxy_id]
opcional

Validations:

  • Must be a number.


DELETE /api/hostgroups/:id
Delete an hostgroup.

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.