Esempi

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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

operatingsystem
richiesto

Validations:

  • Must be a Hash

operatingsystem[name]
richiesto

Validations:

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

operatingsystem[major]
richiesto

Validations:

  • Must be a String

operatingsystem[minor]
opzionale , consentito nil

Validations:

  • Must be a String

operatingsystem[description]
opzionale , consentito nil

Validations:

  • Must be a String

operatingsystem[family]
opzionale , consentito nil

Validations:

  • Must be a String

operatingsystem[release_name]
opzionale , consentito nil

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
opzionale , consentito nil

Array of parameters

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
richiesto

Name of the parameter

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
richiesto

Parameter value

Validations:

  • Must be a String

operatingsystem[password_hash]
opzionale , consentito nil

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

Validations:

  • Must be a String

operatingsystem[architecture_ids]
opzionale , consentito nil

ID delle architetture associate

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
opzionale , consentito nil

ID dei template per il provisioning associati

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
opzionale , consentito nil

ID dei template per il provisioning associati

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
opzionale , consentito nil

ID dei dispositivi associati

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
opzionale , consentito nil

ID delle tabelle di partizioni associate

Validations:

  • Must be an array of any type