GET /api/smart_variables
Alle Smart-Variablen auflisten

GET /api/hosts/:host_id/smart_variables
Liste der Smart-Variablen für einen bestimmten Host

GET /api/hostgroups/:hostgroup_id/smart_variables
Liste der Smart-Variablen für eine bestimmte Hostgruppe

GET /api/puppetclasses/:puppetclass_id/smart_variables
Liste der Smart-Variablen für eine bestimmte Puppet-Klasse

Parameter

Parametername Beschreibung
host_id
optional

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
optional

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
optional

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
optional

Ergebnisse filtern

Validations:

  • Must be String

order
optional

Ergebnisse sortieren

Validations:

  • Must be String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be String


GET /api/smart_variables/:id
Smart-Variable anzeigen

Parameter

Parametername Beschreibung
id
verpflichtend

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/smart_variables
Smart-Variable erstellen

Parameter

Parametername Beschreibung
smart_variable
verpflichtend

Validations:

  • Must be a Hash

smart_variable[variable]
verpflichtend

Name der Variable

Validations:

  • Must be String

smart_variable[puppetclass_id]
optional , nil erlaubt

Puppet-Klassen-Kennung

Validations:

  • Must be a number.

smart_variable[default_value]
optional , nil erlaubt

Standardwert der Variable

Validations:

  • Must be String

smart_variable[hidden_value]
optional , nil erlaubt

When enabled the parameter is hidden in the UI

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[override_value_order]
optional , nil erlaubt

Der Ablauf in welchem Werte aufgelöst werden

Validations:

  • Must be String

smart_variable[description]
optional , nil erlaubt

Beschreibung der Variable

Validations:

  • Must be String

smart_variable[validator_type]
optional , nil erlaubt

Typen von Validierungswerten

Validations:

  • Must be one of: regexp, list.

smart_variable[validator_rule]
optional , nil erlaubt

Verwendet, um bestimmte Werte für die Parameterwerte umzusetzen

Validations:

  • Must be String

smart_variable[variable_type]
optional , nil erlaubt

Typen von Variablenwerten

Validations:

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

smart_variable[merge_overrides]
optional , nil erlaubt

Alle übereinstimmenden Werte (nur vom Typ Array/Hash) zusammenführen

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[merge_default]
optional , nil erlaubt

Include default value when merging all matching values

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[avoid_duplicates]
optional , nil erlaubt

Duplikate (nur vom Typ Array) entfernen

Validations:

  • Must be 'true' or 'false' or '1' or '0'


PUT /api/smart_variables/:id
Smart variable aktualisieren

Parameter

Parametername Beschreibung
id
verpflichtend

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_variable
verpflichtend

Validations:

  • Must be a Hash

smart_variable[variable]
optional

Name der Variable

Validations:

  • Must be String

smart_variable[puppetclass_id]
optional , nil erlaubt

Puppet-Klassen-Kennung

Validations:

  • Must be a number.

smart_variable[default_value]
optional , nil erlaubt

Standardwert der Variable

Validations:

  • Must be String

smart_variable[hidden_value]
optional , nil erlaubt

When enabled the parameter is hidden in the UI

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[override_value_order]
optional , nil erlaubt

Der Ablauf in welchem Werte aufgelöst werden

Validations:

  • Must be String

smart_variable[description]
optional , nil erlaubt

Beschreibung der Variable

Validations:

  • Must be String

smart_variable[validator_type]
optional , nil erlaubt

Typen von Validierungswerten

Validations:

  • Must be one of: regexp, list.

smart_variable[validator_rule]
optional , nil erlaubt

Verwendet, um bestimmte Werte für die Parameterwerte umzusetzen

Validations:

  • Must be String

smart_variable[variable_type]
optional , nil erlaubt

Typen von Variablenwerten

Validations:

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

smart_variable[merge_overrides]
optional , nil erlaubt

Alle übereinstimmenden Werte (nur vom Typ Array/Hash) zusammenführen

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[merge_default]
optional , nil erlaubt

Include default value when merging all matching values

Validations:

  • Must be 'true' or 'false' or '1' or '0'

smart_variable[avoid_duplicates]
optional , nil erlaubt

Duplikate (nur vom Typ Array) entfernen

Validations:

  • Must be 'true' or 'false' or '1' or '0'


DELETE /api/smart_variables/:id
Smart-Variable löschen

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

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