GET /api/operatingsystems
List all operating systems

GET /api/architectures/:architecture_id/operatingsystems
List all operating systems for nested architecture

GET /api/media/:medium_id/operatingsystems
List all operating systems for nested medium

GET /api/ptables/:ptable_id/operatingsystems
List all operating systems for nested partition table

GET /api/config_templates/:config_template_id/operatingsystems
List all operating systems for nested provisioning template

GET /api/provisioning_templates/:provisioning_template_id/operatingsystems
List all operating systems for nested provisioning template

參數

參數名字 描述
architecture_id
選填

ID of architecture

Validations:

  • Must be String

medium_id
選填

ID of medium

Validations:

  • Must be String

ptable_id
選填

ID of partition table

Validations:

  • Must be String

config_template_id
選填

ID of template

Validations:

  • Must be String

provisioning_template_id
選填

ID of template

Validations:

  • Must be String

search
選填

篩選結果

Validations:

  • Must be String

order
選填

排序結果

Validations:

  • Must be String

page
選填

編頁結果

Validations:

  • Must be String

per_page
選填

每個請求的項目數量

Validations:

  • Must be String


GET /api/operatingsystems/:id
Show an operating system

參數

參數名字 描述
id
必填

Validations:

  • Must be String


POST /api/operatingsystems
Create an operating system

參數

參數名字 描述
operatingsystem
必填

Validations:

  • Must be a Hash

operatingsystem[name]
必填

Validations:

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

operatingsystem[major]
必填

Validations:

  • Must be String

operatingsystem[minor]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[description]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[family]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[release_name]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[os_parameters_attributes]
選填 , 允許空值

OS' parameters (array or indexed hash)

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
必填

Name of the parameter

Validations:

  • Must be String

operatingsystem[os_parameters_attributes][value]
必填

Parameter value

Validations:

  • Must be String

operatingsystem[password_hash]
選填 , 允許空值

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

Validations:

  • Must be String

operatingsystem[architecture_ids]
選填 , 允許空值

IDs of associated architectures

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
選填 , 允許空值

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
選填 , 允許空值

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
選填 , 允許空值

IDs of associated media

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
選填 , 允許空值

IDs of associated partition tables

Validations:

  • Must be an array of any type


PUT /api/operatingsystems/:id
Update an operating system

參數

參數名字 描述
id
必填

Validations:

  • Must be String

operatingsystem
必填

Validations:

  • Must be a Hash

operatingsystem[name]
選填

Validations:

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

operatingsystem[major]
選填

Validations:

  • Must be String

operatingsystem[minor]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[description]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[family]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[release_name]
選填 , 允許空值

Validations:

  • Must be String

operatingsystem[os_parameters_attributes]
選填 , 允許空值

OS' parameters (array or indexed hash)

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
選填

Name of the parameter

Validations:

  • Must be String

operatingsystem[os_parameters_attributes][value]
選填

Parameter value

Validations:

  • Must be String

operatingsystem[password_hash]
選填 , 允許空值

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

Validations:

  • Must be String

operatingsystem[architecture_ids]
選填 , 允許空值

IDs of associated architectures

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
選填 , 允許空值

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
選填 , 允許空值

IDs of associated provisioning templates

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
選填 , 允許空值

IDs of associated media

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
選填 , 允許空值

IDs of associated partition tables

Validations:

  • Must be an array of any type


DELETE /api/operatingsystems/:id
Delete an operating system

參數

參數名字 描述
id
必填

Validations:

  • Must be String


GET /api/operatingsystems/:id/bootfiles
List boot files for an operating system

參數

參數名字 描述
id
必填

Validations:

  • Must be String

medium
選填

Validations:

  • Must be String

architecture
選填

Validations:

  • Must be String