Examples

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"
}

Params

Param Name Description
location_id
Optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
Optional

Scope by organizations

Validations:

  • Must be a Integer

config_template_id
Optional

ID of config template

Validations:

  • Must be a String

provisioning_template_id
Optional

ID of config template

Validations:

  • Must be a String

hostgroup_id
Optional

ID för värdgrupp

Validations:

  • Must be a String

environment_id
Optional

ID of environment

Validations:

  • Must be a String

template_combination
Required

Validations:

  • Must be a Hash

template_combination[environment_id]
Optional , <span class="translation_missing" title="translation missing: sv-SE.apipie.nil_allowed">Nil Allowed</span>

environment id

Validations:

  • Must be a number.

template_combination[hostgroup_id]
Optional , <span class="translation_missing" title="translation missing: sv-SE.apipie.nil_allowed">Nil Allowed</span>

host group id

Validations:

  • Must be a number.