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

篩選結果


Value: Must be String
order
Optional

排序結果


Value: Must be String
page
Optional

編頁結果


Value: Must be String
per_page
Optional

每個請求的項目數量


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 , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
ptable[audit_comment]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
ptable[locked]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Whether or not the template is locked for editing


Value: Must be 'true' or 'false'
ptable[os_family]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
ptable[operatingsystem_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Array of operating system IDs to associate with the partition table


Value: Must be an array of any type
ptable[host_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Array of host IDs to associate with the partition table


Value: Must be an array of any type
ptable[hostgroup_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

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 , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
ptable[audit_comment]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
ptable[locked]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Whether or not the template is locked for editing


Value: Must be 'true' or 'false'
ptable[os_family]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
ptable[operatingsystem_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Array of operating system IDs to associate with the partition table


Value: Must be an array of any type
ptable[host_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

Array of host IDs to associate with the partition table


Value: Must be an array of any type
ptable[hostgroup_ids]
Optional , <span class="translation_missing" title="translation missing: zh-TW.apipie.nil_allowed">Nil Allowed</span>

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