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
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

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.

show_hidden
optional

Versteckte Werte anzeigen

Validations:

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

search
optional

Ergebnisse filtern

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be a String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be a String

Search fields

Feld Name Typ Mögliche Werte
avoid_duplicates true, false
key string
merge_default true, false
merge_overrides true, false
override true, false
parameter string
puppetclass string

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

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

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.

show_hidden
optional

Versteckte Werte anzeigen

Validations:

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


POST /api/smart_variables
Smart-Variable erstellen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

smart_variable
verpflichtend

Validations:

  • Must be a Hash

smart_variable[variable]
verpflichtend

Name der Variable

Validations:

  • Must be a 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 one of types: string, boolean, integer, real, array, hash, yaml, json

smart_variable[hidden_value]
optional , nil erlaubt

Wenn aktiviert, so ist der Parameter im UI verborgen

Validations:

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

smart_variable[override_value_order]
optional , nil erlaubt

Reihenfolge, in der Werte aufgelöst werden

Validations:

  • Must be a String

smart_variable[description]
optional , nil erlaubt

Beschreibung der Variable

Validations:

  • Must be a 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 a 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 one of: true, false, 1, 0.

smart_variable[merge_default]
optional , nil erlaubt

Standardwert einschließen, wenn alle übereinstimmenden Werte zusammengeführt werden

Validations:

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

smart_variable[avoid_duplicates]
optional , nil erlaubt

Duplikate (nur vom Typ Array) entfernen

Validations:

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


PUT /api/smart_variables/:id
Smart variable aktualisieren

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

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 a 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 one of types: string, boolean, integer, real, array, hash, yaml, json

smart_variable[hidden_value]
optional , nil erlaubt

Wenn aktiviert, so ist der Parameter im UI verborgen

Validations:

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

smart_variable[override_value_order]
optional , nil erlaubt

Reihenfolge, in der Werte aufgelöst werden

Validations:

  • Must be a String

smart_variable[description]
optional , nil erlaubt

Beschreibung der Variable

Validations:

  • Must be a 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 a 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 one of: true, false, 1, 0.

smart_variable[merge_default]
optional , nil erlaubt

Standardwert einschließen, wenn alle übereinstimmenden Werte zusammengeführt werden

Validations:

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

smart_variable[avoid_duplicates]
optional , nil erlaubt

Duplikate (nur vom Typ Array) entfernen

Validations:

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


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

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

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.