示例

POST /api/config_templates/269958254/template_combinations
{
  "template_combination": {
    "environment_id": 334344675,
    "hostgroup_id": 866317115
  }
}
201
{
  "created_at": "2019-09-11 14:42:09 UTC",
  "updated_at": "2019-09-11 14:42:09 UTC",
  "id": 1018350796,
  "provisioning_template_id": 269958254,
  "provisioning_template_name": "MyString2",
  "hostgroup_id": 866317115,
  "hostgroup_name": "Unusual",
  "environment_id": 334344675,
  "environment_name": "production",
  "config_template_id": 269958254,
  "config_template_name": "MyString2"
}

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

config_template_id
選填

配置範本的 ID

Validations:

  • Must be a String

provisioning_template_id
選填

配置範本的 ID

Validations:

  • Must be a String

hostgroup_id
選填

主機群組的 ID

Validations:

  • Must be a String

environment_id
選填

環境的 ID

Validations:

  • Must be a String

template_combination
必填

Validations:

  • Must be a Hash

template_combination[environment_id]
選填 , 允許空值

環境 ID

Validations:

  • Must be a number.

template_combination[hostgroup_id]
選填 , 允許空值

主機群組 ID

Validations:

  • Must be a number.