GET /api/provisioning_templates/:provisioning_template_id/template_combinations
List template combination

GET /api/hostgroups/:hostgroup_id/template_combinations
List template combination

Examples

GET /api/provisioning_templates/269958254/template_combinations
200
{
  "total": 2,
  "subtotal": 2,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2024-02-22 15:41:34 UTC",
      "updated_at": "2024-02-22 15:41:34 UTC",
      "id": 298486374,
      "provisioning_template_id": 269958254,
      "provisioning_template_name": "MyString2",
      "hostgroup_id": 928644285,
      "hostgroup_name": "Parent/inherited"
    },
    {
      "created_at": "2024-02-22 15:41:34 UTC",
      "updated_at": "2024-02-22 15:41:34 UTC",
      "id": 281110143,
      "provisioning_template_id": 269958254,
      "provisioning_template_name": "MyString2",
      "hostgroup_id": 636252244,
      "hostgroup_name": "Common"
    }
  ]
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

provisioning_template_id
optional

ID of config template

Validations:

  • String

hostgroup_id
optional

ID of host group

Validations:

  • String


POST /api/provisioning_templates/:provisioning_template_id/template_combinations
Add a template combination

POST /api/hostgroups/:hostgroup_id/template_combinations
Add a template combination

Examples

POST /api/provisioning_templates/269958254/template_combinations
{
  "template_combination": {
    "hostgroup_id": 866317115
  }
}
201
{
  "created_at": "2024-02-22 15:41:39 UTC",
  "updated_at": "2024-02-22 15:41:39 UTC",
  "id": 1018350796,
  "provisioning_template_id": 269958254,
  "provisioning_template_name": "MyString2",
  "hostgroup_id": 866317115,
  "hostgroup_name": "Unusual"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

provisioning_template_id
optional

ID of config template

Validations:

  • String

hostgroup_id
optional

ID of host group

Validations:

  • String

template_combination
required

Validations:

  • Hash

template_combination[hostgroup_id]
optional , nil allowed

host group id

Validations:

  • Must be a number.


GET /api/template_combinations/:id
Show template combination

GET /api/provisioning_templates/:provisioning_template_id/template_combinations/:id
Show template combination

GET /api/hostgroups/:hostgroup_id/template_combinations/:id
Show template combination

Examples

GET /api/provisioning_templates/269958254-MyString2/template_combinations/298486374
200
{
  "created_at": "2024-02-22 15:41:34 UTC",
  "updated_at": "2024-02-22 15:41:34 UTC",
  "id": 298486374,
  "provisioning_template_id": 269958254,
  "provisioning_template_name": "MyString2",
  "hostgroup_id": 928644285,
  "hostgroup_name": "Parent/inherited"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

provisioning_template_id
optional

ID of config template

Validations:

  • String

hostgroup_id
optional

ID of host group

Validations:

  • String

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


PUT /api/provisioning_templates/:provisioning_template_id/template_combinations/:id
Update template combination

PUT /api/hostgroups/:hostgroup_id/template_combinations/:id
Update template combination

Examples

PUT /api/provisioning_templates/269958254/template_combinations/298486374
{
  "template_combination": {
    "hostgroup_id": 928644286
  }
}
200
{
  "created_at": "2024-02-22 15:41:34 UTC",
  "updated_at": "2024-02-22 15:41:39 UTC",
  "id": 298486374,
  "provisioning_template_id": 269958254,
  "provisioning_template_name": "MyString2",
  "hostgroup_id": 928644286,
  "hostgroup_name": "hostgroup1"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

provisioning_template_id
optional

ID of config template

Validations:

  • String

hostgroup_id
optional

ID of host group

Validations:

  • String

template_combination
required

Validations:

  • Hash

template_combination[hostgroup_id]
optional , nil allowed

host group id

Validations:

  • Must be a number.


DELETE /api/template_combinations/:id
Delete a template combination

Examples

DELETE /api/template_combinations/298486374
{
  "provisioning_template_id": 269958254,
  "template_combination": {
    "provisioning_template_id": 269958254
  }
}
200
{
  "id": 298486374,
  "provisioning_template_id": 269958254,
  "hostgroup_id": 928644285,
  "created_at": "2024-02-22T15:41:34.233Z",
  "updated_at": "2024-02-22T15:41:34.233Z"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..