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


Value:

Must be String

medium_id
选填

ID of medium


Value:

Must be String

ptable_id
选填

ID of partition table


Value:

Must be String

config_template_id
选填

ID of template


Value:

Must be String

provisioning_template_id
选填

ID of template


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
Show an operating system

参数

参数名字 描述
id
必填

Value:

Must be String


POST /api/operatingsystems
Create an operating system

参数

参数名字 描述
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[password_hash]
选填 , 允许空值

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


Value:

Must be String

operatingsystem[architecture_ids]
选填 , 允许空值

IDs of associated architectures


Value:

Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

IDs of associated provisioning templates


Value:

Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

IDs of associated provisioning templates


Value:

Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

IDs of associated media


Value:

Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

IDs of associated partition tables


Value:

Must be an array of any type


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

参数

参数名字 描述
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[password_hash]
选填 , 允许空值

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


Value:

Must be String

operatingsystem[architecture_ids]
选填 , 允许空值

IDs of associated architectures


Value:

Must be an array of any type

operatingsystem[config_template_ids]
选填 , 允许空值

IDs of associated provisioning templates


Value:

Must be an array of any type

operatingsystem[provisioning_template_ids]
选填 , 允许空值

IDs of associated provisioning templates


Value:

Must be an array of any type

operatingsystem[medium_ids]
选填 , 允许空值

IDs of associated media


Value:

Must be an array of any type

operatingsystem[ptable_ids]
选填 , 允许空值

IDs of associated partition tables


Value:

Must be an array of any type


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

参数

参数名字 描述
id
必填

Value:

Must be String


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

参数

参数名字 描述
id
必填

Value:

Must be String

medium
选填

Value:

Must be String

architecture
选填

Value:

Must be String