GET /api/templates/:template_id/template_inputs
Afficher les modèles de jeux de données en entrée

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

template_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.

search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

trier les resultats

Validations:

  • Must be a String

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entier par requête

Validations:

  • Must be a String


GET /api/templates/:template_id/template_inputs/:id
Afficher les détails du modèle de jeu de données en entrée

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

template_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.

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.


POST /api/templates/:template_id/template_inputs
Créer un modèle d'entrée

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

template_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.

template_input
requis

Validations:

  • Must be a Hash

template_input[name]
requis

Nom de l'entrée

Validations:

  • Must be a String

template_input[description]
optionel , nil autorisé

Description de l'entrée

Validations:

  • Must be a String

template_input[required]
optionel , nil autorisé

Entrée requise

Validations:

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

template_input[advanced]
optionel , nil autorisé

L'entrée est de type avancé

Validations:

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

template_input[input_type]
requis

Type de l'entrée

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
optionel , nil autorisé

Nom du fact, utilisé quand le type d'entrée est un fact

Validations:

  • Must be a String

template_input[variable_name]
optionel , nil autorisé

Nom de variable, utilisé quand le type d'entrée est une variable

Validations:

  • Must be a String

template_input[puppet_parameter_class]
optionel , nil autorisé

Nom de la classe Puppet, utilisé quand le type d'entrée est puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optionel , nil autorisé

Nom du paramètre Puppet, utilisé quand le type d'entrée est puppet_parameter

Validations:

  • Must be a String

template_input[options]
optionel , nil autorisé

Valeurs sélectionnables pour les entrées utilisateur

Validations:

  • Must be an array of any type


DELETE /api/templates/:template_id/template_inputs/:id
Supprimer un modèle d'entrée

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

template_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.

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.


PUT /api/templates/:template_id/template_inputs/:id
Mise à jour d'un modèle d'entrée

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

template_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.

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.

template_input
requis

Validations:

  • Must be a Hash

template_input[name]
optionel

Nom de l'entrée

Validations:

  • Must be a String

template_input[description]
optionel , nil autorisé

Description de l'entrée

Validations:

  • Must be a String

template_input[required]
optionel , nil autorisé

Entrée requise

Validations:

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

template_input[advanced]
optionel , nil autorisé

L'entrée est de type avancé

Validations:

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

template_input[input_type]
optionel

Type de l'entrée

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
optionel , nil autorisé

Nom du fact, utilisé quand le type d'entrée est un fact

Validations:

  • Must be a String

template_input[variable_name]
optionel , nil autorisé

Nom de variable, utilisé quand le type d'entrée est une variable

Validations:

  • Must be a String

template_input[puppet_parameter_class]
optionel , nil autorisé

Nom de la classe Puppet, utilisé quand le type d'entrée est puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
optionel , nil autorisé

Nom du paramètre Puppet, utilisé quand le type d'entrée est puppet_parameter

Validations:

  • Must be a String

template_input[options]
optionel , nil autorisé

Valeurs sélectionnables pour les entrées utilisateur

Validations:

  • Must be an array of any type