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:

  • Must be String

search
Optional

filter results

Validations:

  • Must be String

order
Optional

sort results

Validations:

  • Must be String

page
Optional

paginate results

Validations:

  • Must be String

per_page
Optional

number of entries per request

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

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

Params

Param Name Description
ptable
Required

Validations:

  • Must be a Hash

ptable[name]
Required

Validations:

  • Must be String

ptable[layout]
Required

Validations:

  • Must be String

ptable[snippet]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

ptable[audit_comment]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

ptable[locked]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Whether or not the template is locked for editing

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

ptable[os_family]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

ptable[operatingsystem_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type


GET /api/ptables/revision

Params

Param Name Description
version
Optional

template version

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

Validations:

  • Must be String

ptable
Required

Validations:

  • Must be a Hash

ptable[name]
Optional

Validations:

  • Must be String

ptable[layout]
Optional

Validations:

  • Must be String

ptable[snippet]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

ptable[audit_comment]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

ptable[locked]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Whether or not the template is locked for editing

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

ptable[os_family]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be String

ptable[operatingsystem_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span>

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type


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

Params

Param Name Description
id
Required

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

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
Required

Validations:

  • Must be a Hash

ptable[name]
Required

template name

Validations:

  • Must be String