GET /api/operatingsystems
列出所有操作系统

GET /api/architectures/:architecture_id/operatingsystems
列出嵌套架构的所有操作系统

GET /api/media/:medium_id/operatingsystems
列出嵌套媒体的所有操作系统

GET /api/ptables/:ptable_id/operatingsystems
列出嵌套分区表的所有操作系统

GET /api/config_templates/:config_template_id/operatingsystems
列出嵌套预配模板的所有操作系统

GET /api/provisioning_templates/:provisioning_template_id/operatingsystems
列出嵌套预配模板的所有操作系统

参数

参数名字 描述
architecture_id
选填

架构 ID

Validations:

  • Must be a String

medium_id
选填

媒体 ID

Validations:

  • Must be a String

ptable_id
选填

分区表 ID

Validations:

  • Must be a String

config_template_id
选填

模板 ID

Validations:

  • Must be a String

provisioning_template_id
选填

模板 ID

Validations:

  • Must be a String

os_parameters_attributes
选填

Array of parameters

Validations:

  • Must be an Array of nested elements

os_parameters_attributes[name]
必填

参数名称

Validations:

  • Must be a String

os_parameters_attributes[value]
必填

参数值

Validations:

  • Must be a String

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

结果排序

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/operatingsystems/:id
显示操作系统

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

show_hidden_parameters
选填

Display hidden parameter values

Validations:

  • Must be one of: true, false, 1, 0


POST /api/operatingsystems
创建操作系统

参数

参数名字 描述
operatingsystem
必填

Validations:

  • Must be a Hash

operatingsystem[name]
必填

Validations:

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

operatingsystem[major]
必填

Validations:

  • Must be a String

operatingsystem[minor]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[description]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[family]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[release_name]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
选填 , 允许空值

Array of parameters

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
必填

参数名称

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
必填

参数值

Validations:

  • Must be a String

operatingsystem[password_hash]
选填 , 允许空值

要使用的 root 密码哈希功能,应为 MD5、SHA256、SHA512 和 Base64 之一。

Validations:

  • Must be a String

operatingsystem[architecture_ids]
选填 , 允许空值

关联架构的 ID

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

关联预配模板的 ID

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

关联预配模板的 ID

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

关联介质的 ID

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

关联分区表的 ID

Validations:

  • Must be an array of any type


PUT /api/operatingsystems/:id
更新操作系统

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

operatingsystem
必填

Validations:

  • Must be a Hash

operatingsystem[name]
选填

Validations:

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

operatingsystem[major]
选填

Validations:

  • Must be a String

operatingsystem[minor]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[description]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[family]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[release_name]
选填 , 允许空值

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes]
选填 , 允许空值

Array of parameters

Validations:

  • Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
选填

参数名称

Validations:

  • Must be a String

operatingsystem[os_parameters_attributes][value]
选填

参数值

Validations:

  • Must be a String

operatingsystem[password_hash]
选填 , 允许空值

要使用的 root 密码哈希功能,应为 MD5、SHA256、SHA512 和 Base64 之一。

Validations:

  • Must be a String

operatingsystem[architecture_ids]
选填 , 允许空值

关联架构的 ID

Validations:

  • Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

关联预配模板的 ID

Validations:

  • Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

关联预配模板的 ID

Validations:

  • Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

关联介质的 ID

Validations:

  • Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

关联分区表的 ID

Validations:

  • Must be an array of any type


DELETE /api/operatingsystems/:id
删除操作系统

参数

参数名字 描述
id
必填

Validations:

  • Must be a String


GET /api/operatingsystems/:id/bootfiles
列出操作系统的引导文件

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

medium
选填

Validations:

  • Must be a String

architecture
选填

Validations:

  • Must be a String