GET /api/smart_variables
スマート変数一覧

GET /api/hosts/:host_id/smart_variables
特定ホストのスマート変数の一覧

GET /api/hostgroups/:hostgroup_id/smart_variables
特定のホストグループのスマート変数の一覧

GET /api/puppetclasses/:puppetclass_id/smart_variables
特定の Puppet クラスのスマート変数の一覧

Params

Param Name Description
host_id
Optional

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

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

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/smart_variables/:id
スマート変数を表示

Params

Param Name Description
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/smart_variables
スマート変数を作成

Params

Param Name Description
smart_variable
Required

Value: Must be a Hash
smart_variable[variable]
Required

変数名


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

Puppet クラス ID


Value: Must be a number.
smart_variable[default_value]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

変数のデフォルト値


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

値が解決される順序


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

変数の説明


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

検証値の種類


Value: Must be one of: regexp, list.
smart_variable[validator_rule]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Used to enforce certain values for the parameter values


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

変数値の種類


Value: Must be one of: string, boolean, integer, real, array, hash, yaml, json.
smart_variable[merge_overrides]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

すべての一致する値をマージする ( 配列型とハッシュ型のみ )


Value: Must be 'true' or 'false'
smart_variable[avoid_duplicates]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

重複した値を削除する ( 配列型のみ )


Value: Must be 'true' or 'false'

PUT /api/smart_variables/:id
スマート変数を更新

Params

Param Name Description
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.
smart_variable
Required

Value: Must be a Hash
smart_variable[variable]
Optional

変数名


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

Puppet クラス ID


Value: Must be a number.
smart_variable[default_value]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

変数のデフォルト値


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

値が解決される順序


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

変数の説明


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

検証値の種類


Value: Must be one of: regexp, list.
smart_variable[validator_rule]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

Used to enforce certain values for the parameter values


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

変数値の種類


Value: Must be one of: string, boolean, integer, real, array, hash, yaml, json.
smart_variable[merge_overrides]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

すべての一致する値をマージする ( 配列型とハッシュ型のみ )


Value: Must be 'true' or 'false'
smart_variable[avoid_duplicates]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

重複した値を削除する ( 配列型のみ )


Value: Must be 'true' or 'false'

DELETE /api/smart_variables/:id
スマート変数を削除

Params

Param Name Description
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.