GET /api/templates/:template_id/template_inputs
テンプレート入力を一覧表示

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

template_id
必須

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
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

結果のソート

Validations:

  • Must be a String

page
任意

結果のページネーション

Validations:

  • Must be a String

per_page
任意

要求ごとのエントリー数

Validations:

  • Must be a String


GET /api/templates/:template_id/template_inputs/:id
テンプレート入力詳細を表示

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

template_id
必須

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
必須

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
テンプレート入力を作成

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

template_id
必須

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
必須

Validations:

  • Must be a Hash

template_input[name]
必須

入力名

Validations:

  • Must be a String

template_input[description]
任意 , nil可

入力の説明

Validations:

  • Must be a String

template_input[required]
任意 , nil可

入力が必要

Validations:

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

template_input[advanced]
任意 , nil可

入力が高度

Validations:

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

template_input[input_type]
必須

入力タイプ

Validations:

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

template_input[fact_name]
任意 , nil可

ファクト名。入力タイプがファクトの場合に使用されます

Validations:

  • Must be a String

template_input[variable_name]
任意 , nil可

変数名。入力タイプが変数の場合に使用されます

Validations:

  • Must be a String

template_input[puppet_parameter_class]
任意 , nil可

Puppet クラス名。入力タイプが puppet_parameter の場合に使用されます

Validations:

  • Must be a String

template_input[puppet_parameter_name]
任意 , nil可

Puppet パラメーター名。入力タイプが puppet_parameter の場合に使用されます

Validations:

  • Must be a String

template_input[options]
任意 , nil可

ユーザー入力に選択できる値

Validations:

  • Must be an array of any type


DELETE /api/templates/:template_id/template_inputs/:id
テンプレート入力を削除

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

template_id
必須

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
必須

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
テンプレート入力を更新

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

template_id
必須

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
必須

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
必須

Validations:

  • Must be a Hash

template_input[name]
任意

入力名

Validations:

  • Must be a String

template_input[description]
任意 , nil可

入力の説明

Validations:

  • Must be a String

template_input[required]
任意 , nil可

入力が必要

Validations:

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

template_input[advanced]
任意 , nil可

入力が高度

Validations:

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

template_input[input_type]
任意

入力タイプ

Validations:

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

template_input[fact_name]
任意 , nil可

ファクト名。入力タイプがファクトの場合に使用されます

Validations:

  • Must be a String

template_input[variable_name]
任意 , nil可

変数名。入力タイプが変数の場合に使用されます

Validations:

  • Must be a String

template_input[puppet_parameter_class]
任意 , nil可

Puppet クラス名。入力タイプが puppet_parameter の場合に使用されます

Validations:

  • Must be a String

template_input[puppet_parameter_name]
任意 , nil可

Puppet パラメーター名。入力タイプが puppet_parameter の場合に使用されます

Validations:

  • Must be a String

template_input[options]
任意 , nil可

ユーザー入力に選択できる値

Validations:

  • Must be an array of any type