GET /api/hostgroups
Llista tots els grups d'amfitrions

GET /api/puppetclasses/:puppetclass_id/hostgroups
Llista tots els grups d'amfitrions per a una classe de Puppet

GET /api/locations/:location_id/hostgroups
Llista tots els grups d'amfitrions per ubicació

GET /api/organizations/:organization_id/hostgroups
Llista tots els grups d'amfitrions per organització

Params

Param name Description
puppetclass_id
optional

Id. de la classe de Puppet

Validations:

  • Must be a String

location_id
optional

Abast per ubicacions

Validations:

  • Must be a Integer

organization_id
optional

Abast per organitzacions

Validations:

  • Must be a Integer

search
optional

filtra els resultats

Validations:

  • Must be a String

order
optional

ordena els resultats

Validations:

  • Must be a String

page
optional

pagina els resultats

Validations:

  • Must be a String

per_page
optional

Nombre d'entrades per petició

Validations:

  • Must be a String

include
optional

Array of extra information types to include

Validations:

  • Must be an array of [“parameters”]


GET /api/hostgroups/:id
Mostra un grup d'amfitrions

Params

Param name Description
id
required

Validations:

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

show_hidden_parameters
optional

Display hidden parameter values

Validations:

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


POST /api/hostgroups
Crea un grup d'amfitrions

Params

Param name Description
hostgroup
required

Validations:

  • Must be a Hash

hostgroup[name]
required

Nom del grup d'amfitrions

Validations:

  • Must be a String

hostgroup[description]
optional , nil allowed

Host group description

Validations:

  • Must be a String

hostgroup[parent_id]
optional , nil allowed

Id. del pare del grup d'amfitrions

Validations:

  • Must be a number.

hostgroup[environment_id]
optional , nil allowed

Id. d'entorn

Validations:

  • Must be a number.

hostgroup[compute_profile_id]
optional , nil allowed

Id. de perfil computacional

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
optional , nil allowed

Id. de sistema operatiu

Validations:

  • Must be a number.

hostgroup[architecture_id]
optional , nil allowed

Id. de l'arquitectura

Validations:

  • Must be a number.

hostgroup[pxe_loader]
optional , nil allowed

DHCP filename option (Grub2/PXELinux by default)

Validations:

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

hostgroup[medium_id]
optional , nil allowed

Id. de mitjà

Validations:

  • Must be a number.

hostgroup[ptable_id]
optional , nil allowed

Id. de taula de particions

Validations:

  • Must be a number.

hostgroup[subnet_id]
optional , nil allowed

Id. de subxarxa

Validations:

  • Must be a number.

hostgroup[domain_id]
optional , nil allowed

Id. de domini

Validations:

  • Must be a number.

hostgroup[realm_id]
optional , nil allowed

Id. de reialme

Validations:

  • Must be a number.

hostgroup[config_group_ids]
optional , nil allowed

IDs of associated config groups

Validations:

  • Must be an array of any type

hostgroup[group_parameters_attributes]
optional , nil allowed

Array of parameters

Validations:

  • Must be an Array of nested elements

hostgroup[group_parameters_attributes][name]
required

Nom del paràmetre

Validations:

  • Must be a String

hostgroup[group_parameters_attributes][value]
required

Valor del paràmetre

Validations:

  • Must be a String

hostgroup[puppet_proxy_id]
optional , nil allowed

Id. de servidor intermediari de Puppet

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
optional , nil allowed

Id. del servidor intermediari de l'AC de Puppet

Validations:

  • Must be a number.

hostgroup[root_pass]
optional , nil allowed

Contrasenya de root en els amfitrions aprovisionats

Validations:

  • Must be a String

hostgroup[location_ids]
optional , nil allowed

SUBSTITUEIX les ubicacions amb els id. donats

Validations:

  • Must be an array of any type

hostgroup[organization_ids]
optional , nil allowed

SUBSTITUEIX les organitzacions amb els id. donats.

Validations:

  • Must be an array of any type


PUT /api/hostgroups/:id
Actualitza un grup d'amfitrions

Params

Param name Description
id
required

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
required

Validations:

  • Must be a Hash

hostgroup[name]
optional

Nom del grup d'amfitrions

Validations:

  • Must be a String

hostgroup[description]
optional , nil allowed

Host group description

Validations:

  • Must be a String

hostgroup[parent_id]
optional , nil allowed

Id. del pare del grup d'amfitrions

Validations:

  • Must be a number.

hostgroup[environment_id]
optional , nil allowed

Id. d'entorn

Validations:

  • Must be a number.

hostgroup[compute_profile_id]
optional , nil allowed

Id. de perfil computacional

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
optional , nil allowed

Id. de sistema operatiu

Validations:

  • Must be a number.

hostgroup[architecture_id]
optional , nil allowed

Id. de l'arquitectura

Validations:

  • Must be a number.

hostgroup[pxe_loader]
optional , nil allowed

DHCP filename option (Grub2/PXELinux by default)

Validations:

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

hostgroup[medium_id]
optional , nil allowed

Id. de mitjà

Validations:

  • Must be a number.

hostgroup[ptable_id]
optional , nil allowed

Id. de taula de particions

Validations:

  • Must be a number.

hostgroup[subnet_id]
optional , nil allowed

Id. de subxarxa

Validations:

  • Must be a number.

hostgroup[domain_id]
optional , nil allowed

Id. de domini

Validations:

  • Must be a number.

hostgroup[realm_id]
optional , nil allowed

Id. de reialme

Validations:

  • Must be a number.

hostgroup[config_group_ids]
optional , nil allowed

IDs of associated config groups

Validations:

  • Must be an array of any type

hostgroup[group_parameters_attributes]
optional , nil allowed

Array of parameters

Validations:

  • Must be an Array of nested elements

hostgroup[group_parameters_attributes][name]
optional

Nom del paràmetre

Validations:

  • Must be a String

hostgroup[group_parameters_attributes][value]
optional

Valor del paràmetre

Validations:

  • Must be a String

hostgroup[puppet_proxy_id]
optional , nil allowed

Id. de servidor intermediari de Puppet

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
optional , nil allowed

Id. del servidor intermediari de l'AC de Puppet

Validations:

  • Must be a number.

hostgroup[root_pass]
optional , nil allowed

Contrasenya de root en els amfitrions aprovisionats

Validations:

  • Must be a String

hostgroup[location_ids]
optional , nil allowed

SUBSTITUEIX les ubicacions amb els id. donats

Validations:

  • Must be an array of any type

hostgroup[organization_ids]
optional , nil allowed

SUBSTITUEIX les organitzacions amb els id. donats.

Validations:

  • Must be an array of any type


DELETE /api/hostgroups/:id
Suprimeix un grup d'amfitrions

Params

Param name Description
id
required

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/:id/clone
Clona un grup d'amfitrions

Params

Param name Description
name
required

Validations:

  • Must be a String


PUT /api/hostgroups/:id/rebuild_config
Rebuild orchestration config

Params

Param name Description
id
required

Validations:

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

only
optional

Limit rebuild steps, valid steps are DHCP, DNS, TFTP

Validations:

  • Must be an array of any type

children_hosts
optional

Operate on child hostgroup hosts

Validations:

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