参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

job_template
必填

Validations:

  • Must be a Hash

job_template[name]
必填

模板名称

Validations:

  • Must be a String

job_template[description]
选填 , 允许空值

Validations:

  • Must be a String

job_template[job_category]
必填

任务类别

Validations:

  • Must be a String

job_template[description_format]
选填 , 允许空值

这个模板是用来生成描述。可和使用句法 %{package} 输入参数值。还可以和使用 %{job_category} 和 %{template_name} 在其中包含任务类别及模板名称。

Validations:

  • Must be a String

job_template[template]
必填

Validations:

  • Must be a String

job_template[provider_type]
必填

提供者类型

Validations:

  • Must be one of: SSH.

job_template[snippet]
选填 , 允许空值

Validations:

  • Must be one of: true, false, 1, 0.

job_template[audit_comment]
选填 , 允许空值

Validations:

  • Must be a String

job_template[locked]
选填 , 允许空值

是否已锁定该模板进行编辑

Validations:

  • Must be one of: true, false, 1, 0.

job_template[effective_user_attributes]
选填 , 允许空值

有效用户选项

Validations:

  • Must be a Hash

job_template[effective_user_attributes][value]
选填 , 允许空值

应由什么用户运行此脚本(使用类似 sudo 的机制)。

Validations:

  • Must be a String

job_template[effective_user_attributes][overridable]
选填 , 允许空值

是否应允许使用调用形式替代有效用户。

Validations:

  • Must be one of: true, false, 1, 0.

job_template[effective_user_attributes][current_user]
选填 , 允许空值

是否应使用当前登录用户作为有效用户

Validations:

  • Must be one of: true, false, 1, 0.

job_template[location_ids]
选填 , 允许空值

使用给定 id 替换位置

Validations:

  • Must be an array of any type

job_template[organization_ids]
选填 , 允许空值

使用给定 id 替换机构

Validations:

  • Must be an array of any type