GET /api/templates/:template_id/template_inputs
List template inputs

Params

Param Name Description
template_id
Required

Value: 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

結果をフィルタ


Value: Must be String
order
Optional

結果をソート


Value: Must be String
page
Optional

結果をページ分割


Value: Must be String
per_page
Optional

リクエストあたりのエントリ数


Value: Must be String

GET /api/templates/:template_id/template_inputs/:id
Show template input details

Params

Param Name Description
template_id
Required

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

Value: 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
Create a template input

Params

Param Name Description
template_id
Required

Value: 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
Required

Value: Must be a Hash
template_input[name]
Required

Input name


Value: Must be String
template_input[description]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Input description


Value: Must be String
template_input[required]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Input is required


Value: Must be 'true' or 'false'
template_input[input_type]
Required

Input type


Value: Must be one of: user, fact, variable, puppet_parameter.
template_input[fact_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Fact name, used when input type is fact


Value: Must be String
template_input[variable_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Variable name, used when input type is variable


Value: Must be String
template_input[puppet_parameter_class]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Puppet class name, used when input type is puppet_parameter


Value: Must be String
template_input[puppet_parameter_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Puppet parameter name, used when input type is puppet_parameter


Value: Must be String
template_input[options]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Selectable values for user inputs


Value: Must be an array of any type

DELETE /api/templates/:template_id/template_inputs/:id
Delete a template input

Params

Param Name Description
template_id
Required

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

Value: 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
Update a template input

Params

Param Name Description
template_id
Required

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

Value: 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
Required

Value: Must be a Hash
template_input[name]
Optional

Input name


Value: Must be String
template_input[description]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Input description


Value: Must be String
template_input[required]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Input is required


Value: Must be 'true' or 'false'
template_input[input_type]
Optional

Input type


Value: Must be one of: user, fact, variable, puppet_parameter.
template_input[fact_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Fact name, used when input type is fact


Value: Must be String
template_input[variable_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Variable name, used when input type is variable


Value: Must be String
template_input[puppet_parameter_class]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Puppet class name, used when input type is puppet_parameter


Value: Must be String
template_input[puppet_parameter_name]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Puppet parameter name, used when input type is puppet_parameter


Value: Must be String
template_input[options]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Selectable values for user inputs


Value: Must be an array of any type