GET /api/ptables
列出所有分区表

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

GET /api/locations/:location_id/ptables
List all partition tables per location

GET /api/organizations/:organization_id/ptables
List all partition tables per organization

参数

参数名字 描述
operatingsystem_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/ptables/:id
显示分区表

参数

参数名字 描述
id
必填

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/ptables
生成分区表

参数

参数名字 描述
ptable
必填

Value:

Must be a Hash

ptable[name]
必填

Value:

Must be String

ptable[layout]
必填

Value:

Must be String

ptable[snippet]
选填 , 允许空值

Value:

Must be 'true' or 'false'

ptable[audit_comment]
选填 , 允许空值

Value:

Must be String

ptable[locked]
选填 , 允许空值

是否已锁定该模板进行编辑


Value:

Must be 'true' or 'false'

ptable[os_family]
选填 , 允许空值

Value:

Must be String

ptable[operatingsystem_ids]
选填 , 允许空值

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
选填 , 允许空值

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
选填 , 允许空值

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


GET /api/ptables/revision

参数

参数名字 描述
version
选填

模板版本


Value:

Must be String


PUT /api/ptables/:id
更新分区表

参数

参数名字 描述
id
必填

Value:

Must be String

ptable
必填

Value:

Must be a Hash

ptable[name]
选填

Value:

Must be String

ptable[layout]
选填

Value:

Must be String

ptable[snippet]
选填 , 允许空值

Value:

Must be 'true' or 'false'

ptable[audit_comment]
选填 , 允许空值

Value:

Must be String

ptable[locked]
选填 , 允许空值

是否已锁定该模板进行编辑


Value:

Must be 'true' or 'false'

ptable[os_family]
选填 , 允许空值

Value:

Must be String

ptable[operatingsystem_ids]
选填 , 允许空值

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
选填 , 允许空值

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
选填 , 允许空值

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


DELETE /api/ptables/:id
删除分区表

参数

参数名字 描述
id
必填

Value:

Must be String


POST /api/ptables/:id/clone
Clone a template

参数

参数名字 描述
id
必填

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

ptable
必填

Value:

Must be a Hash

ptable[name]
必填

模板名称


Value:

Must be String