GET /api/smart_class_parameters
List all smart class parameters

GET /api/hosts/:host_id/smart_class_parameters
List of smart class parameters for a specific host

GET /api/hostgroups/:hostgroup_id/smart_class_parameters
List of smart class parameters for a specific host group

GET /api/puppetclasses/:puppetclass_id/smart_class_parameters
List of smart class parameters for a specific Puppet class

GET /api/environments/:environment_id/smart_class_parameters
List of smart class parameters for a specific environment

GET /api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters
List of smart class parameters for a specific environment/Puppet class combination

Parâmentros

Nome parâmetro Descrição
host_id
opcional

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

Value:

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

Value:

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

Value:

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

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 requisições


Value:

Must be String


GET /api/smart_class_parameters/:id
Show a smart class parameter

Parâmentros

Nome parâmetro Descrição
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.


PUT /api/smart_class_parameters/:id
Update a smart class parameter

Parâmentros

Nome parâmetro Descrição
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.

smart_class_parameter
requerido

Value:

Must be a Hash

smart_class_parameter[override]
opcional

Whether the smart class parameter value is managed by Foreman


Value:

Must be 'true' or 'false'

smart_class_parameter[description]
opcional

Description of smart class


Value:

Must be String

smart_class_parameter[default_value]
opcional

Valor a usar quando não houver combinação


Value:

Must be String

smart_class_parameter[hidden_value]
opcional

When enabled the parameter is hidden in the UI


Value:

Must be 'true' or 'false'

smart_class_parameter[use_puppet_default]
opcional

Do not send this parameter via the ENC. Puppet will use the value defined in the Puppet manifest for this parameter


Value:

Must be 'true' or 'false'

smart_class_parameter[path]
opcional

A ordem na qual os valores são resolvidos


Value:

Must be String

smart_class_parameter[validator_type]
opcional

Types of validation values


Value:

Must be one of: regexp, list.

smart_class_parameter[validator_rule]
opcional

Used to enforce certain values for the parameter values


Value:

Must be String

smart_class_parameter[override_value_order]
opcional

A ordem na qual os valores são resolvidos


Value:

Must be String

smart_class_parameter[parameter_type]
opcional

Types of variable values


Value:

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

smart_class_parameter[required]
opcional

If true, will raise an error if there is no default value and no matcher provide a value


Value:

Must be 'true' or 'false'

smart_class_parameter[merge_overrides]
opcional

Merge all matching values (only array/hash type)


Value:

Must be 'true' or 'false'

smart_class_parameter[merge_default]
opcional

Include default value when merging all matching values


Value:

Must be 'true' or 'false'

smart_class_parameter[avoid_duplicates]
opcional

Remove duplicate values (only array type)


Value:

Must be 'true' or 'false'