GET /api/provisioning_templates
List provisioning templates

GET /api/operatingsystems/:operatingsystem_id/provisioning_templates
List provisioning templates per operating system

GET /api/locations/:location_id/provisioning_templates
List provisioning templates per location

GET /api/organizations/:organization_id/provisioning_templates
List provisioning templates per organization

參數

參數名字 描述
operatingsystem_id
選填

ID of operating system


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/provisioning_templates/:id
Show provisioning template details

參數

參數名字 描述
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/provisioning_templates
Create a provisioning template

參數

參數名字 描述
provisioning_template
必填

Value:

Must be a Hash

provisioning_template[name]
必填

template name


Value:

Must be String

provisioning_template[template]
必填

Value:

Must be String

provisioning_template[snippet]
選填 , 允許空值

Value:

Must be 'true' or 'false'

provisioning_template[audit_comment]
選填 , 允許空值

Value:

Must be String

provisioning_template[template_kind_id]
選填 , 允許空值

not relevant for snippet


Value:

Must be a number.

provisioning_template[template_combinations_attributes]
選填 , 允許空值

Array of template combinations (hostgroup_id, environment_id)


Value:

Must be an array of any type

provisioning_template[operatingsystem_ids]
選填 , 允許空值

Array of operating system IDs to associate with the template


Value:

Must be an array of any type

provisioning_template[locked]
選填 , 允許空值

Whether or not the template is locked for editing


Value:

Must be 'true' or 'false'


PUT /api/provisioning_templates/:id
Update a provisioning 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.

provisioning_template
必填

Value:

Must be a Hash

provisioning_template[name]
選填

template name


Value:

Must be String

provisioning_template[template]
選填

Value:

Must be String

provisioning_template[snippet]
選填 , 允許空值

Value:

Must be 'true' or 'false'

provisioning_template[audit_comment]
選填 , 允許空值

Value:

Must be String

provisioning_template[template_kind_id]
選填 , 允許空值

not relevant for snippet


Value:

Must be a number.

provisioning_template[template_combinations_attributes]
選填 , 允許空值

Array of template combinations (hostgroup_id, environment_id)


Value:

Must be an array of any type

provisioning_template[operatingsystem_ids]
選填 , 允許空值

Array of operating system IDs to associate with the template


Value:

Must be an array of any type

provisioning_template[locked]
選填 , 允許空值

Whether or not the template is locked for editing


Value:

Must be 'true' or 'false'


GET /api/provisioning_templates/revision

參數

參數名字 描述
version
選填

template version


Value:

Must be String


DELETE /api/provisioning_templates/:id
Delete a provisioning 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.


POST /api/provisioning_templates/build_pxe_default
Update the default PXE menu on all configured TFTP servers


POST /api/provisioning_templates/:id/clone
Clone a provision 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.

provisioning_template
必填

Value:

Must be a Hash

provisioning_template[name]
必填

template name


Value:

Must be String