Examples

POST /api/operatingsystems
{
  "operatingsystem": {
    "name": "nIchybcxxO",
    "major": "1"
  }
}
201
{
  "description": null,
  "major": "1",
  "minor": "",
  "family": null,
  "release_name": null,
  "password_hash": "SHA256",
  "created_at": "2019-09-11 14:55:41 UTC",
  "updated_at": "2019-09-11 14:55:41 UTC",
  "id": 1073012837,
  "name": "nIchybcxxO",
  "title": "nIchybcxxO 1",
  "media": [],
  "architectures": [],
  "ptables": [],
  "config_templates": [],
  "provisioning_templates": [],
  "os_default_templates": [],
  "images": [],
  "parameters": []
}

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
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 , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

operatingsystem[description]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

operatingsystem[family]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

operatingsystem[release_name]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Pole parametrů

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
Required

Název parametru

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
Required

Hodnota parametru

Validations:

  • Must be a String

operatingsystem[password_hash]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Root password hash function to use, one of MD5, SHA256, SHA512, Base64

Validations:

  • Must be a String

operatingsystem[architecture_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

IDs of associated architectures

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

IDs of associated media

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

IDs of associated partition tables

Validations:

  • Must be an array of any type