Ejemplos

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"
    ]
  }
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

operatingsystem
requerido

Validations:

  • Must be a Hash

operatingsystem[name]
requerido

Validations:

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

operatingsystem[major]
requerido

Validations:

  • Must be a String

operatingsystem[minor]
opcional , nil permitido

Validations:

  • Must be a String

operatingsystem[description]
opcional , nil permitido

Validations:

  • Must be a String

operatingsystem[family]
opcional , nil permitido

Validations:

  • Must be a String

operatingsystem[release_name]
opcional , nil permitido

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
opcional , nil permitido

Conjunto de parámetros

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
requerido

Nombre del parámetro

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
requerido

Valor del parámetro

Validations:

  • Must be a String

operatingsystem[password_hash]
opcional , nil permitido

Función hash de la contraseña raíz que se debe utilizar, una de MD5, SHA256, SHA512, Base64

Validations:

  • Must be a String

operatingsystem[architecture_ids]
opcional , nil permitido

ID de arquitecturas asociadas

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
opcional , nil permitido

ID de plantillas de aprovisionamiento asociadas

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
opcional , nil permitido

ID de plantillas de aprovisionamiento asociadas

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
opcional , nil permitido

ID de medios asociados

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
opcional , nil permitido

ID de tablas de particiones asociadas

Validations:

  • Must be an array of any type