GET /api/ptables
List all partition tables

GET /api/operatingsystems/:operatingsystem_id/ptables
List all partition tables for an operating system

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 of operating system

Validations:

  • Must be String

location_id
选填

Scope by locations

Validations:

  • Must be Integer

organization_id
选填

Scope by organizations

Validations:

  • Must be Integer

search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String


GET /api/ptables/:id
Show a partition table

参数

参数名字 描述
id
必填

Validations:

  • 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
Create a partition table

参数

参数名字 描述
ptable
必填

Validations:

  • Must be a Hash

ptable[name]
必填

Validations:

  • Must be String

ptable[layout]
必填

Validations:

  • Must be String

ptable[snippet]
选填 , 允许空值

Validations:

  • Must be 'true' or 'false' or '1' or '0'

ptable[audit_comment]
选填 , 允许空值

Validations:

  • Must be String

ptable[locked]
选填 , 允许空值

Whether or not the template is locked for editing

Validations:

  • Must be 'true' or 'false' or '1' or '0'

ptable[os_family]
选填 , 允许空值

Validations:

  • Must be String

ptable[operatingsystem_ids]
选填 , 允许空值

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
选填 , 允许空值

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
选填 , 允许空值

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
选填 , 允许空值

REPLACE locations with given ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
选填 , 允许空值

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


GET /api/ptables/revision

参数

参数名字 描述
version
选填

template version

Validations:

  • Must be String


PUT /api/ptables/:id
Update a partition table

参数

参数名字 描述
id
必填

Validations:

  • Must be String

ptable
必填

Validations:

  • Must be a Hash

ptable[name]
选填

Validations:

  • Must be String

ptable[layout]
选填

Validations:

  • Must be String

ptable[snippet]
选填 , 允许空值

Validations:

  • Must be 'true' or 'false' or '1' or '0'

ptable[audit_comment]
选填 , 允许空值

Validations:

  • Must be String

ptable[locked]
选填 , 允许空值

Whether or not the template is locked for editing

Validations:

  • Must be 'true' or 'false' or '1' or '0'

ptable[os_family]
选填 , 允许空值

Validations:

  • Must be String

ptable[operatingsystem_ids]
选填 , 允许空值

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
选填 , 允许空值

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
选填 , 允许空值

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
选填 , 允许空值

REPLACE locations with given ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
选填 , 允许空值

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


DELETE /api/ptables/:id
Delete a partition table

参数

参数名字 描述
id
必填

Validations:

  • Must be String


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

参数

参数名字 描述
id
必填

Validations:

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

ptable
必填

Validations:

  • Must be a Hash

ptable[name]
必填

template name

Validations:

  • Must be String