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


Value:

Must be String

medium_id
选填

介质 ID


Value:

Must be String

ptable_id
选填

分区表 ID


Value:

Must be String

config_template_id
选填

模板 ID


Value:

Must be String

provisioning_template_id
选填

模板 ID


Value:

Must be String

search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


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

参数

参数名字 描述
id
必填

Value:

Must be String


POST /api/operatingsystems
生成操作系统

参数

参数名字 描述
operatingsystem
必填

Value:

Must be a Hash

operatingsystem[name]
必填

Value:

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

operatingsystem[major]
必填

Value:

Must be String

operatingsystem[minor]
选填 , 允许空值

Value:

Must be String

operatingsystem[description]
选填 , 允许空值

Value:

Must be String

operatingsystem[family]
选填 , 允许空值

Value:

Must be String

operatingsystem[release_name]
选填 , 允许空值

Value:

Must be String

operatingsystem[os_parameters_attributes]
选填 , 允许空值

OS' parameters (array or indexed hash)


Value:

Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
必填

Name of the parameter


Value:

Must be String

operatingsystem[os_parameters_attributes][value]
必填

Parameter value


Value:

Must be String

operatingsystem[password_hash]
选填 , 允许空值

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


Value:

Must be String

operatingsystem[architecture_ids]
选填 , 允许空值

关联架构的 ID


Value:

Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

关联配置模板的 ID


Value:

Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

关联配置模板的 ID


Value:

Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

关联介质的 ID


Value:

Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

关联分区表的 ID


Value:

Must be an array of any type


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

参数

参数名字 描述
id
必填

Value:

Must be String

operatingsystem
必填

Value:

Must be a Hash

operatingsystem[name]
选填

Value:

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

operatingsystem[major]
选填

Value:

Must be String

operatingsystem[minor]
选填 , 允许空值

Value:

Must be String

operatingsystem[description]
选填 , 允许空值

Value:

Must be String

operatingsystem[family]
选填 , 允许空值

Value:

Must be String

operatingsystem[release_name]
选填 , 允许空值

Value:

Must be String

operatingsystem[os_parameters_attributes]
选填 , 允许空值

OS' parameters (array or indexed hash)


Value:

Must be an Array of nested elements

operatingsystem[os_parameters_attributes][name]
选填

Name of the parameter


Value:

Must be String

operatingsystem[os_parameters_attributes][value]
选填

Parameter value


Value:

Must be String

operatingsystem[password_hash]
选填 , 允许空值

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


Value:

Must be String

operatingsystem[architecture_ids]
选填 , 允许空值

关联架构的 ID


Value:

Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

关联配置模板的 ID


Value:

Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

关联配置模板的 ID


Value:

Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

关联介质的 ID


Value:

Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

关联分区表的 ID


Value:

Must be an array of any type


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

参数

参数名字 描述
id
必填

Value:

Must be String


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

参数

参数名字 描述
id
必填

Value:

Must be String

medium
选填

Value:

Must be String

architecture
选填

Value:

Must be String