POST /api/smart_variables/1018350798/override_values
{
  "override_value": {
    "match": "os=string"
  }
}
201
{
  "created_at": "2019-11-07 08:39:22 UTC",
  "updated_at": "2019-11-07 08:39:22 UTC",
  "id": 1018350797,
  "match": "os=string",
  "value": null,
  "omit": false,
  "use_puppet_default": false
}

パラメーター

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

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

smart_variable_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.

smart_class_parameter_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.

override_value
必須

Validations:

  • Must be a Hash

override_value[match]
必須

一致候補の上書き

Validations:

  • Must be a String

override_value[value]
任意 , nil可

オーバーライド値 (omit が false の場合に必要)

Validations:

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

override_value[use_puppet_default]
任意 , nil可

非推奨です。omit を使用してください。

Validations:

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

override_value[omit]
任意 , nil可

Foreman では、このパラメーターが分類出力で送信されず、use_puppet_default が置き換えられます

Validations:

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