PUT /api/smart_class_parameters/328495940-cluster/override_values/874520030
{
  "override_value": {
    "match": "os=abc"
  }
}
200
{
  "created_at": "2019-11-07 08:39:06 UTC",
  "updated_at": "2019-11-07 08:39:23 UTC",
  "id": 874520030,
  "match": "os=abc",
  "value": "8080",
  "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.