GET /api/smart_variables/:smart_variable_id/override_values
Liste des valeurs de substitution pour une smart variable

GET /api/smart_class_parameters/:smart_class_parameter_id/override_values
Liste des valeurs de substitution pour un paramètre smart class

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

smart_variable_id
optionel

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

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
optionel

Afficher les valeurs masquées

Validations:

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

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entrées par requête

Validations:

  • Must be a String


GET /api/smart_variables/:smart_variable_id/override_values/:id
Afficher une valeur de substitution pour une smart variable

GET /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
Afficher une valeur de substitution pour un paramètre smart class spécifique

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

smart_variable_id
optionel

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

Validations:

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

id
requis

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
optionel

Afficher les valeurs masquées

Validations:

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


POST /api/smart_variables/:smart_variable_id/override_values
Créer une valeur de substitution pour une variable d'une smart class spécifique

POST /api/smart_class_parameters/:smart_class_parameter_id/override_values
Créer une valeur de substitution pour un paramètre d'une smart class spécifique

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

smart_variable_id
optionel

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

Validations:

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

override_value
requis

Validations:

  • Must be a Hash

override_value[match]
requis

Élément conditionnel d'emplacement

Validations:

  • Must be a String

override_value[value]
optionel , nil autorisé

Remplace la valeur, requis si Omettre est sur false

Validations:

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

override_value[use_puppet_default]
optionel , nil autorisé

Déprécié, veuillez utiliser Omettre

Validations:

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

override_value[omit]
optionel , nil autorisé

Foreman n'enverra pas ce paramètre dans la sortie de la classification, remplace use_puppet_default

Validations:

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


PUT /api/smart_variables/:smart_variable_id/override_values/:id
Mise à jour d'une valeur de substitution pour une smart variable

PUT /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
Mise à jour d'une valeur de substitution pour un paramètre smart class

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

smart_variable_id
optionel

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

Validations:

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

override_value
requis

Validations:

  • Must be a Hash

override_value[match]
optionel

Élément conditionnel d'emplacement

Validations:

  • Must be a String

override_value[value]
optionel , nil autorisé

Remplace la valeur, requis si Omettre est sur false

Validations:

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

override_value[use_puppet_default]
optionel , nil autorisé

Déprécié, veuillez utiliser Omettre

Validations:

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

override_value[omit]
optionel , nil autorisé

Foreman n'enverra pas ce paramètre dans la sortie de la classification, remplace use_puppet_default

Validations:

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


DELETE /api/smart_variables/:smart_variable_id/override_values/:id
Supprimer une valeur de substitution pour une smart variable spécifique

DELETE /api/smart_class_parameters/:smart_class_parameter_id/override_values/:id
Supprimer une valeur de substitution pour un paramètre d'une smart class spécifique

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

smart_variable_id
optionel

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

Validations:

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

id
requis

Validations:

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