Examples

POST /api/operatingsystems
{
  "operatingsystem": {
    "name": "RzFqSEyXKp",
    "major": "657",
    "family": "Redhat"
  }
}
201
{
  "description": null,
  "major": "657",
  "minor": "",
  "family": "Redhat",
  "release_name": null,
  "password_hash": "SHA256",
  "created_at": "2022-09-06 15:05:31 UTC",
  "updated_at": "2022-09-06 15:05:31 UTC",
  "id": 1073012832,
  "name": "RzFqSEyXKp",
  "title": "RzFqSEyXKp 657",
  "media": [],
  "architectures": [],
  "ptables": [],
  "provisioning_templates": [
    {
      "id": 508279162,
      "name": "Linux host_init_config default",
      "template_kind_id": 508279162,
      "template_kind_name": "host_init_config"
    }
  ],
  "os_default_templates": [
    {
      "id": 1018350799,
      "provisioning_template_id": 508279162,
      "provisioning_template_name": "Linux host_init_config default",
      "template_kind_id": 508279162,
      "template_kind_name": "host_init_config",
      "operatingsystem_id": 1073012832,
      "operatingsystem_name": "RzFqSEyXKp 657"
    }
  ],
  "images": [],
  "parameters": []
}

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
required

Validations:

  • Must be a Hash

operatingsystem[name]
required

Validations:

  • Must match regular expression /\A(\S+)\Z/.

operatingsystem[major]
required

Validations:

  • Must be a String

operatingsystem[minor]
optional , nil allowed

Validations:

  • Must be a String

operatingsystem[description]
optional , nil allowed

Validations:

  • Must be a String

operatingsystem[family]
optional , nil allowed

Validations:

  • Must be a String

operatingsystem[release_name]
optional , nil allowed

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
optional , nil allowed

Array of parameters

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
required

Name of the parameter

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
required

Parameter value

Validations:

  • Must be a String

operatingsystem[password_hash]
optional , nil allowed

Root password hash function to use

Validations:

  • Must be one of: SHA256, SHA512, Base64, Base64-Windows, MD5.

operatingsystem[architecture_ids]
optional , nil allowed

IDs of associated architectures

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
optional , nil allowed

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
optional , nil allowed

IDs of associated media

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
optional , nil allowed

IDs of associated partition tables

Validations:

  • Must be an array of any type