GET /api/ptables
列出所有分割表

GET /api/operatingsystems/:operatingsystem_id/ptables
列出作業系統的所有分割表

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


Value:

Must be String

search
選填

篩選結果


Value:

Must be String

order
選填

排序結果


Value:

Must be String

page
選填

編頁結果


Value:

Must be String

per_page
選填

每個請求的項目數量


Value:

Must be String


GET /api/ptables/:id
顯示分割表

參數

參數名字 描述
id
必填

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
建立分割表

參數

參數名字 描述
ptable
必填

Value:

Must be a Hash

ptable[name]
必填

Value:

Must be String

ptable[layout]
必填

Value:

Must be String

ptable[snippet]
選填 , 允許空值

Value:

Must be 'true' or 'false'

ptable[audit_comment]
選填 , 允許空值

Value:

Must be String

ptable[locked]
選填 , 允許空值

範本是否鎖定並禁止進行編輯


Value:

Must be 'true' or 'false'

ptable[os_family]
選填 , 允許空值

Value:

Must be String

ptable[operatingsystem_ids]
選填 , 允許空值

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
選填 , 允許空值

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
選填 , 允許空值

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


GET /api/ptables/revision

參數

參數名字 描述
version
選填

範本版本


Value:

Must be String


PUT /api/ptables/:id
更新分割表

參數

參數名字 描述
id
必填

Value:

Must be String

ptable
必填

Value:

Must be a Hash

ptable[name]
選填

Value:

Must be String

ptable[layout]
選填

Value:

Must be String

ptable[snippet]
選填 , 允許空值

Value:

Must be 'true' or 'false'

ptable[audit_comment]
選填 , 允許空值

Value:

Must be String

ptable[locked]
選填 , 允許空值

範本是否鎖定並禁止進行編輯


Value:

Must be 'true' or 'false'

ptable[os_family]
選填 , 允許空值

Value:

Must be String

ptable[operatingsystem_ids]
選填 , 允許空值

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
選填 , 允許空值

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
選填 , 允許空值

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


DELETE /api/ptables/:id
刪除磁碟分割表

參數

參數名字 描述
id
必填

Value:

Must be String


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

參數

參數名字 描述
id
必填

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
必填

Value:

Must be a Hash

ptable[name]
必填

範本名稱


Value:

Must be String