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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


POST /api/job_templates/import
Import a job template from ERB

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

template
richiesto

Template ERB

Validations:

  • Must be a String

overwrite
opzionale

Overwrite template if it already exists

Validations:

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


GET /api/job_templates/:id/export
Export a job template to ERB

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

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


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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • 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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

job_template
richiesto

Validations:

  • Must be a Hash

job_template[name]
richiesto

Template name

Validations:

  • Must be a String

job_template[job_category]
richiesto

Job category

Validations:

  • Must be a String

job_template[description_format]
opzionale , consentito nil

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}.

Validations:

  • Must be a String

job_template[template]
richiesto

Validations:

  • Must be a String

job_template[provider_type]
richiesto

Provider type

Validations:

  • Must be one of: SSH.

job_template[snippet]
opzionale , consentito nil

Validations:

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

job_template[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

job_template[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

job_template[ssh]
opzionale , consentito nil

SSH provider specific options

Validations:

  • Must be a Hash

job_template[ssh][effective_user]
opzionale , consentito nil

Effective user options

Validations:

  • Must be a Hash

job_template[ssh][effective_user][value]
opzionale , consentito nil

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

Validations:

  • Must be a String

job_template[ssh][effective_user][overridable]
opzionale , consentito nil

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

Validations:

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

job_template[ssh][effective_user][current_user]
opzionale , consentito nil

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

Validations:

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

job_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

job_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • 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
richiesto

Validations:

  • Must be a Hash

job_template[name]
opzionale

Template name

Validations:

  • Must be a String

job_template[job_category]
opzionale

Job category

Validations:

  • Must be a String

job_template[description_format]
opzionale , consentito nil

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}.

Validations:

  • Must be a String

job_template[template]
opzionale

Validations:

  • Must be a String

job_template[provider_type]
opzionale

Provider type

Validations:

  • Must be one of: SSH.

job_template[snippet]
opzionale , consentito nil

Validations:

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

job_template[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

job_template[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

job_template[ssh]
opzionale , consentito nil

SSH provider specific options

Validations:

  • Must be a Hash

job_template[ssh][effective_user]
opzionale , consentito nil

Effective user options

Validations:

  • Must be a Hash

job_template[ssh][effective_user][value]
opzionale , consentito nil

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

Validations:

  • Must be a String

job_template[ssh][effective_user][overridable]
opzionale , consentito nil

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

Validations:

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

job_template[ssh][effective_user][current_user]
opzionale , consentito nil

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

Validations:

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

job_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

job_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


GET /api/job_templates/revision

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

version
opzionale

Template version

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • 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
Clone a provision template

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • 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
richiesto

Validations:

  • Must be a Hash

job_template[name]
richiesto

Template name

Validations:

  • Must be a String