GET /api/hostgroups
List all hostgroups.

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por petición


Value:

Must be String


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

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

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

Value:

Must be a Hash

hostgroup[name]
requerido

Value:

Must be String

hostgroup[parent_id]
opcional

Value:

Must be a number.

hostgroup[environment_id]
opcional

Value:

Must be a number.

hostgroup[operatingsystem_id]
opcional

Value:

Must be a number.

hostgroup[architecture_id]
opcional

Value:

Must be a number.

hostgroup[medium_id]
opcional

Value:

Must be a number.

hostgroup[ptable_id]
opcional

Value:

Must be a number.

hostgroup[puppet_ca_proxy_id]
opcional

Value:

Must be a number.

hostgroup[subnet_id]
opcional

Value:

Must be a number.

hostgroup[domain_id]
opcional

Value:

Must be a number.

hostgroup[puppet_proxy_id]
opcional

Value:

Must be a number.


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

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

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

Value:

Must be a Hash

hostgroup[name]
opcional

Value:

Must be String

hostgroup[parent_id]
opcional

Value:

Must be a number.

hostgroup[environment_id]
opcional

Value:

Must be a number.

hostgroup[operatingsystem_id]
opcional

Value:

Must be a number.

hostgroup[architecture_id]
opcional

Value:

Must be a number.

hostgroup[medium_id]
opcional

Value:

Must be a number.

hostgroup[ptable_id]
opcional

Value:

Must be a number.

hostgroup[puppet_ca_proxy_id]
opcional

Value:

Must be a number.

hostgroup[subnet_id]
opcional

Value:

Must be a number.

hostgroup[domain_id]
opcional

Value:

Must be a number.

hostgroup[puppet_proxy_id]
opcional

Value:

Must be a number.


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

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

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