Examples

POST /api/operatingsystems
{
  "operatingsystem": {
    "name": "NhOVztCsuf",
    "major": "248"
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "name": [
        "Operating system version already exists"
      ],
      "title": [
        "has already been taken"
      ]
    },
    "full_messages": [
      "Name Operating system version already exists",
      "Title has already been taken"
    ]
  }
}

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 , <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