GET /api/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent

GET /api/hosts/:host_id/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent per a un amfitrió específic

GET /api/hostgroups/:hostgroup_id/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent per a un grup d'amfitrions específic

GET /api/puppetclasses/:puppetclass_id/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent per a una classe de Puppet específica

GET /api/environments/:environment_id/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent per a un entorn específic

GET /api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters
Llista tots els paràmetres de la classe intel·ligent per a una combinació especifica d'entorn i classe de Puppet

Params

Param Name Description
host_id
Optional

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
Optional

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
Optional

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
Optional

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
Optional

filtra els resultats


Value:

Must be String

order
Optional

ordena els resultats


Value:

Must be String

page
Optional

pagina els resultats


Value:

Must be String

per_page
Optional

Nombre d'entrades per petició


Value:

Must be String


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

Params

Param Name Description
id
Required

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

Params

Param Name Description
id
Required

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
Required

Value:

Must be a Hash

smart_class_parameter[override]
Optional

Whether the smart class parameter value is managed by Foreman


Value:

Must be 'true' or 'false'

smart_class_parameter[description]
Optional

Description of smart class


Value:

Must be String

smart_class_parameter[default_value]
Optional

Value to use when there is no match


Value:

Must be String

smart_class_parameter[hidden_value]
Optional

When enabled the parameter is hidden in the UI


Value:

Must be 'true' or 'false'

smart_class_parameter[use_puppet_default]
Optional

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]
Optional

The order in which values are resolved


Value:

Must be String

smart_class_parameter[validator_type]
Optional

Tipus de valors de validació


Value:

Must be one of: regexp, list.

smart_class_parameter[validator_rule]
Optional

Used to enforce certain values for the parameter values


Value:

Must be String

smart_class_parameter[override_value_order]
Optional

The order in which values are resolved


Value:

Must be String

smart_class_parameter[parameter_type]
Optional

Types of variable values


Value:

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

smart_class_parameter[required]
Optional

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]
Optional

Merge all matching values (only array/hash type)


Value:

Must be 'true' or 'false'

smart_class_parameter[merge_default]
Optional

Include default value when merging all matching values


Value:

Must be 'true' or 'false'

smart_class_parameter[avoid_duplicates]
Optional

Remove duplicate values (only array type)


Value:

Must be 'true' or 'false'