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

Params

Param name Description
operatingsystem_id
optional

ID of operating system

Validations:

  • String

location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

search
optional

filter results

Validations:

  • String

order
optional

sort results

Validations:

  • String

page
optional

paginate results

Validations:

  • String

per_page
optional

number of entries per request

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..


POST /api/ptables
Create a partition table

Params

Param name Description
ptable
required

Validations:

  • Hash

ptable[name]
required

Validations:

  • String

ptable[layout]
required

Validations:

  • String

ptable[snippet]
optional , nil allowed

Validations:

  • boolean

ptable[audit_comment]
optional , nil allowed

Validations:

  • String

ptable[locked]
optional , nil allowed

Whether or not the template is locked for editing

Validations:

  • boolean

ptable[os_family]
optional , nil allowed

Validations:

  • String

ptable[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
optional , nil allowed

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optional , nil allowed

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


GET /api/ptables/revision

Params

Param name Description
version
optional

template version

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • String

ptable
required

Validations:

  • Hash

ptable[name]
optional

Validations:

  • String

ptable[layout]
optional

Validations:

  • String

ptable[snippet]
optional , nil allowed

Validations:

  • boolean

ptable[audit_comment]
optional , nil allowed

Validations:

  • String

ptable[locked]
optional , nil allowed

Whether or not the template is locked for editing

Validations:

  • boolean

ptable[os_family]
optional , nil allowed

Validations:

  • String

ptable[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
optional , nil allowed

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optional , nil allowed

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


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

Params

Param name Description
id
required

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..

ptable
required

Validations:

  • Hash

ptable[name]
required

template name

Validations:

  • String


GET /api/ptables/:id/export
Export a partition template to ERB

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..