Exemplos

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

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

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

Validations:

  • Must be a String

operatingsystem[description]
opcional , nulo permitido

Validations:

  • Must be a String

operatingsystem[family]
opcional , nulo permitido

Validations:

  • Must be a String

operatingsystem[release_name]
opcional , nulo permitido

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
opcional , nulo permitido

Matriz de parâmetros

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
requerido

Nome do parâmetro

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
requerido

Valor do parâmetro

Validations:

  • Must be a String

operatingsystem[password_hash]
opcional , nulo permitido

Senha root de função hash para usar , uma das MD5, SHA256 , SHA512 , Base64

Validations:

  • Must be a String

operatingsystem[architecture_ids]
opcional , nulo permitido

IDs de arquiteturas associadas

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
opcional , nulo permitido

IDs dos associados modelos provisionados

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
opcional , nulo permitido

IDs dos associados modelos provisionados

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
opcional , nulo permitido

IDs das mídias associadas

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
opcional , nulo permitido

IDs das associados tabelas de partições

Validations:

  • Must be an array of any type