Examples

PUT /api/operatingsystems/1073012828-RHEL%206-1/os_default_templates/980190962
{
  "os_default_template": {
    "provisioning_template_id": 821548108,
    "template_kind_id": 452984334
  }
}
200
{
  "id": 980190962,
  "provisioning_template_id": 821548108,
  "provisioning_template_name": "PXELinux default local boot",
  "template_kind_id": 452984334,
  "template_kind_name": "PXELinux",
  "operatingsystem_id": 1073012828,
  "operatingsystem_name": "RHEL 6.1",
  "config_template_id": 821548108,
  "config_template_name": "PXELinux default local boot"
}

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

operatingsystem_id
optional

ID of operating system

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String

os_default_template
required

Validations:

  • Must be a Hash

os_default_template[template_kind_id]
optional , nil allowed

Validations:

  • Must be a number.

os_default_template[config_template_id]
optional , nil allowed

ID of provisioning template

Validations:

  • Must be a number.

os_default_template[provisioning_template_id]
optional , nil allowed

ID of provisioning template

Validations:

  • Must be a number.