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