Examples

POST /api/operatingsystems/1073012828-RHEL%206-1/os_default_templates
{
  "os_default_template": {
    "provisioning_template_id": 943779058,
    "template_kind_id": 698706415
  }
}
201
{
  "id": 1018350797,
  "provisioning_template_id": 943779058,
  "provisioning_template_name": "MyString",
  "template_kind_id": 698706415,
  "template_kind_name": "iPXE",
  "operatingsystem_id": 1073012828,
  "operatingsystem_name": "RHEL 6.1",
  "config_template_id": 943779058,
  "config_template_name": "MyString"
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

operatingsystem_id
Optional

ID of operating system

Validations:

  • Must be a String

os_default_template
Required

Validations:

  • Must be a Hash

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

Validations:

  • Must be a number.

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

ID of provisioning template

Validations:

  • Must be a number.

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

ID of provisioning template

Validations:

  • Must be a number.