GET /api/job_templates
List job templates

GET /api/locations/:location_id/job_templates
List job templates per location

GET /api/organizations/:organization_id/job_templates
List job templates per organization

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por petición


Value:

Must be String


GET /api/job_templates/:id
Show job template details

Parámetros

Nombre del parámetro Descripción
id
requerido

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/job_templates
Create a job template

Parámetros

Nombre del parámetro Descripción
job_template
requerido

Value:

Must be a Hash

job_template[name]
requerido

Template name


Value:

Must be String

job_template[job_category]
requerido

Job category


Value:

Must be String

job_template[description_format]
opcional , nil permitido

This template is used to generate the description. Input values can be used using the syntax %{package}. You may also include the job category and template name using %{job_category} and %{template_name}.


Value:

Must be String

job_template[template]
requerido

Value:

Must be String

job_template[provider_type]
requerido

Provider type


Value:

Must be one of: SSH.

job_template[snippet]
opcional , nil permitido

Value:

Must be ‘true’ or ‘false’

job_template[audit_comment]
opcional , nil permitido

Value:

Must be String

job_template[locked]
opcional , nil permitido

Si está o no la plantilla bloqueada para editar


Value:

Must be ‘true’ or ‘false’

job_template[ssh]
opcional , nil permitido

SSH provider specific options


Value:

Must be a Hash

job_template[ssh][effective_user]
opcional , nil permitido

Effective user options


Value:

Must be a Hash

job_template[ssh][effective_user][value]
opcional , nil permitido

What user should be used to run the script (using sudo-like mechanisms)


Value:

Must be String

job_template[ssh][effective_user][overridable]
opcional , nil permitido

Whether it should be allowed to override the effective user from the invocation form.


Value:

Must be ‘true’ or ‘false’

job_template[ssh][effective_user][current_user]
opcional , nil permitido

Whether the current user login should be used as the effective user


Value:

Must be ‘true’ or ‘false’


PUT /api/job_templates/:id
Update a job template

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

job_template
requerido

Value:

Must be a Hash

job_template[name]
opcional

Template name


Value:

Must be String

job_template[job_category]
opcional

Job category


Value:

Must be String

job_template[description_format]
opcional , nil permitido

This template is used to generate the description. Input values can be used using the syntax %{package}. You may also include the job category and template name using %{job_category} and %{template_name}.


Value:

Must be String

job_template[template]
opcional

Value:

Must be String

job_template[provider_type]
opcional

Provider type


Value:

Must be one of: SSH.

job_template[snippet]
opcional , nil permitido

Value:

Must be ‘true’ or ‘false’

job_template[audit_comment]
opcional , nil permitido

Value:

Must be String

job_template[locked]
opcional , nil permitido

Si está o no la plantilla bloqueada para editar


Value:

Must be ‘true’ or ‘false’

job_template[ssh]
opcional , nil permitido

SSH provider specific options


Value:

Must be a Hash

job_template[ssh][effective_user]
opcional , nil permitido

Effective user options


Value:

Must be a Hash

job_template[ssh][effective_user][value]
opcional , nil permitido

What user should be used to run the script (using sudo-like mechanisms)


Value:

Must be String

job_template[ssh][effective_user][overridable]
opcional , nil permitido

Whether it should be allowed to override the effective user from the invocation form.


Value:

Must be ‘true’ or ‘false’

job_template[ssh][effective_user][current_user]
opcional , nil permitido

Whether the current user login should be used as the effective user


Value:

Must be ‘true’ or ‘false’


GET /api/job_templates/revision

Parámetros

Nombre del parámetro Descripción
version
opcional

Template version


Value:

Must be String


DELETE /api/job_templates/:id
Delete a job template

Parámetros

Nombre del parámetro Descripción
id
requerido

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/job_templates/:id/clone
Clonar un template de provisión

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

job_template
requerido

Value:

Must be a Hash

job_template[name]
requerido

Template name


Value:

Must be String