GET /api/provisioning_templates
Elenca i template di provisioning

GET /api/operatingsystems/:operatingsystem_id/provisioning_templates
Elenca i template di provisioning per sistema operativo

GET /api/locations/:location_id/provisioning_templates
Elenca i template di provisioning per posizione

GET /api/organizations/:organization_id/provisioning_templates
Elenca i template di provisioning per organizzazione

Parametri

Nome parametro Descrizione
operatingsystem_id
opzionale

ID del sistema operativo

Validations:

  • Must be a String

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

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

Search fields

Field name Tipo Possible values
default_template true, false
environment
hostgroup
kind
location
location_id
locked true, false
name
operatingsystem
organization
organization_id
snippet true, false
template
vendor

GET /api/provisioning_templates/:id
Mostra informazioni template di provisioning

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

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/provisioning_templates
Crea un template per il provisioning

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

provisioning_template
richiesto

Validations:

  • Must be a Hash

provisioning_template[name]
richiesto

nome template

Validations:

  • Must be a String

provisioning_template[description]
opzionale , consentito nil

Validations:

  • Must be a String

provisioning_template[template]
richiesto

Validations:

  • Must be a String

provisioning_template[snippet]
opzionale , consentito nil

Validations:

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

provisioning_template[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

provisioning_template[template_kind_id]
opzionale , consentito nil

non rilevante per lo snippet

Validations:

  • Must be a number.

provisioning_template[template_combinations_attributes]
opzionale , consentito nil

Insieme di combinazioni template (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

provisioning_template[operatingsystem_ids]
opzionale , consentito nil

Insiemi di IP del sistema operativo da associare con il template

Validations:

  • Must be an array of any type

provisioning_template[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

provisioning_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


POST /api/provisioning_templates/import
Import a provisioning template

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

provisioning_template
richiesto

Validations:

  • Must be a Hash

provisioning_template[name]
opzionale

nome template

Validations:

  • Must be a String

provisioning_template[template]
opzionale

template contents including metadata

Validations:

  • Must be a String

provisioning_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type

options
opzionale

Validations:

  • Must be a Hash

options[force]
opzionale , consentito nil

use if you want update locked templates

Validations:

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

options[associate]
opzionale , consentito nil

determines when the template should associate objects based on metadata, new means only when new template is being created, always means both for new and existing template which is only being updated, never ignores metadata

Validations:

  • Must be one of: new, always, never.

options[lock]
opzionale , consentito nil

lock imported templates (false by default)

Validations:

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

options[default]
opzionale , consentito nil

makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default)

Validations:

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


PUT /api/provisioning_templates/:id
Aggiorna un template di provisioning

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

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.

provisioning_template
richiesto

Validations:

  • Must be a Hash

provisioning_template[name]
opzionale

nome template

Validations:

  • Must be a String

provisioning_template[description]
opzionale , consentito nil

Validations:

  • Must be a String

provisioning_template[template]
opzionale

Validations:

  • Must be a String

provisioning_template[snippet]
opzionale , consentito nil

Validations:

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

provisioning_template[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

provisioning_template[template_kind_id]
opzionale , consentito nil

non rilevante per lo snippet

Validations:

  • Must be a number.

provisioning_template[template_combinations_attributes]
opzionale , consentito nil

Insieme di combinazioni template (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

provisioning_template[operatingsystem_ids]
opzionale , consentito nil

Insiemi di IP del sistema operativo da associare con il template

Validations:

  • Must be an array of any type

provisioning_template[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

provisioning_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


GET /api/provisioning_templates/revision

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

version
opzionale

versione template

Validations:

  • Must be a String


DELETE /api/provisioning_templates/:id
Cancella un template di provisioning

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

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/provisioning_templates/build_pxe_default
Aggiorna il menu predefinito di PXE su tutti i server TFTP configurati

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/provisioning_templates/:id/clone
Clone a provision template

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

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.

provisioning_template
richiesto

Validations:

  • Must be a Hash

provisioning_template[name]
richiesto

nome template

Validations:

  • Must be a String


GET /api/provisioning_templates/:id/export
Export a provisioning template to ERB

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

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.