GET /api/smart_class_parameters
Listar todos los parámetros de clase inteligentes

GET /api/hosts/:host_id/smart_class_parameters
Lista de parámetros de clase inteligentes para un host determinado

GET /api/hostgroups/:hostgroup_id/smart_class_parameters
Lista de parámetros de clase inteligentes para un grupo de hosts determinado

GET /api/puppetclasses/:puppetclass_id/smart_class_parameters
Lista de parámetros de clase inteligentes para una clase Puppet específica

GET /api/environments/:environment_id/smart_class_parameters
Lista de parámetros de clase inteligentes para un entorno determinado

GET /api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters
Lista de parámetros de clase inteligentes para una combinación determinada entorno/clase Puppet

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
opcional

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_id
opcional

Validations:

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

puppetclass_id
opcional

Validations:

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

environment_id
opcional

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
opcional

Mostrar valores ocultos

Validations:

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

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Orden y campo de clasificación, p. ej., 'id DESC'

Validations:

  • Must be a 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.

Campos de búsqueda

Nombre del campo Tipo Valores posibles
avoid_duplicates true, false
environment
key
merge_default true, false
merge_overrides true, false
override true, false
parameter
puppetclass
puppetclass_name

GET /api/smart_class_parameters/:id
Mostrar un parametro de clase inteligente

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

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.

show_hidden
opcional

Mostrar valores ocultos

Validations:

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


PUT /api/smart_class_parameters/:id
Actualizar un parámetro de clase inteligente

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

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.

smart_class_parameter
requerido

Validations:

  • Must be a Hash

smart_class_parameter[override]
opcional

Si el valor del parámetro de clase inteligente es administrado por Foreman

Validations:

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

smart_class_parameter[description]
opcional

Descripción de clase inteligente

Validations:

  • Must be a String

smart_class_parameter[default_value]
opcional

Valor a utilizar cuando no existen coincidencias

Validations:

  • Must be one of types: string, boolean, integer, real, array, hash, yaml, json

smart_class_parameter[hidden_value]
opcional

Al habilitarse, el parámetro está oculto en la UI.

Validations:

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

smart_class_parameter[omit]
opcional

Foreman no enviará este parámetro en el resultado de clasificación. Puppet usará el valor definido en el manifiesto de Puppet para este parámetro.

Validations:

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

smart_class_parameter[path]
opcional

El orden en el cual se resuelven los valores

Validations:

  • Must be a String

smart_class_parameter[validator_type]
opcional

Tipos de valores de validación

Validations:

  • Must be one of: regexp, list.

smart_class_parameter[validator_rule]
opcional

Utilizado para imponer ciertos valores para los valores del parámetro

Validations:

  • Must be a String

smart_class_parameter[override_value_order]
opcional

El orden en el cual se resuelven los valores

Validations:

  • Must be a String

smart_class_parameter[parameter_type]
opcional

Tipos de valores de variable

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

smart_class_parameter[required]
opcional

Si es así, se mostrará un error si no existe un valor predeterminado y no existe ninguna concordancia que pueda proporcionar un valor

Validations:

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

smart_class_parameter[merge_overrides]
opcional

Combinar todos los valores que coinciden (solo tipo array/hash)

Validations:

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

smart_class_parameter[merge_default]
opcional

Incluir el valor predeterminado al combinar todos los valores que coinciden

Validations:

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

smart_class_parameter[avoid_duplicates]
opcional

Eliminar valores duplicados (solo tipo array)

Validations:

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