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


Value: Must be String
search
optional

filter results


Value: Must be String
order
optional

sort results


Value: Must be String
page
optional

paginate results


Value: Must be String
per_page
optional

number of entries per request


Value: Must be String

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

Params

Param name Description
id
required

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

Params

Param name Description
ptable
required

Value: Must be a Hash
ptable[name]
required

Value: Must be String
ptable[layout]
required

Value: Must be String
ptable[snippet]
optional , nil allowed

Value: Must be 'true' or 'false'
ptable[audit_comment]
optional , nil allowed

Value: Must be String
ptable[locked]
optional , nil allowed

Whether or not the template is locked for editing


Value: Must be 'true' or 'false'
ptable[os_family]
optional , nil allowed

Value: Must be String
ptable[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the partition table


Value: Must be an array of any type
ptable[host_ids]
optional , nil allowed

Array of host IDs to associate with the partition table


Value: Must be an array of any type
ptable[hostgroup_ids]
optional , nil allowed

Array of host group IDs to associate with the partition table


Value: Must be an array of any type

GET /api/ptables/revision

Params

Param name Description
version
optional

template version


Value: Must be String

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

Params

Param name Description
id
required

Value: Must be String
ptable
required

Value: Must be a Hash
ptable[name]
optional

Value: Must be String
ptable[layout]
optional

Value: Must be String
ptable[snippet]
optional , nil allowed

Value: Must be 'true' or 'false'
ptable[audit_comment]
optional , nil allowed

Value: Must be String
ptable[locked]
optional , nil allowed

Whether or not the template is locked for editing


Value: Must be 'true' or 'false'
ptable[os_family]
optional , nil allowed

Value: Must be String
ptable[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the partition table


Value: Must be an array of any type
ptable[host_ids]
optional , nil allowed

Array of host IDs to associate with the partition table


Value: Must be an array of any type
ptable[hostgroup_ids]
optional , nil allowed

Array of host group IDs to associate with the partition table


Value: Must be an array of any type

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

Params

Param name Description
id
required

Value: Must be String

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

Params

Param name Description
id
required

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
required

Value: Must be a Hash
ptable[name]
required

template name


Value: Must be String