GET /api/provisioning_templates
Afficher les modèles de provisioning

GET /api/operatingsystems/:operatingsystem_id/provisioning_templates
Liste des modèles de provisioning par système d'exploitation

GET /api/locations/:location_id/provisioning_templates
Liste des modèles de provisioning par emplacement

GET /api/organizations/:organization_id/provisioning_templates
Liste des modèles de provisioning par organisation

Paramètres

Nom du paramètre Description
operatingsystem_id
optionel

ID du système d'exploitation

Validations:

  • Must be a String

location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

Champ et sens de tri, ex: 'id DESC'

Validations:

  • Must be a String

page
optionel

Numéro de la page, commençant par 1

Validations:

  • Must be a number.

per_page
optionel

Nombre de résultats par page à renvoyer

Validations:

  • Must be a number.

Rechercher les champs

Nom du champ Type Valeurs possibles
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
Afficher les détails des modèles de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

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
Créer un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

provisioning_template
requis

Validations:

  • Must be a Hash

provisioning_template[name]
requis

Nom de modèle

Validations:

  • Must be a String

provisioning_template[description]
optionel , nil autorisé

Validations:

  • Must be a String

provisioning_template[template]
requis

Validations:

  • Must be a String

provisioning_template[snippet]
optionel , nil autorisé

Validations:

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

provisioning_template[audit_comment]
optionel , nil autorisé

Validations:

  • Must be a String

provisioning_template[template_kind_id]
optionel , nil autorisé

n'est pas applicable pour les snippets

Validations:

  • Must be a number.

provisioning_template[template_combinations_attributes]
optionel , nil autorisé

Tableau des combinaisons de modèles (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

provisioning_template[operatingsystem_ids]
optionel , nil autorisé

Tableau des ID de systèmes d'exploitation associés à ce modèle

Validations:

  • Must be an array of any type

provisioning_template[locked]
optionel , nil autorisé

Indique si le modèle peut être modifié

Validations:

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

provisioning_template[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


POST /api/provisioning_templates/import
Importer un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

provisioning_template
requis

Validations:

  • Must be a Hash

provisioning_template[name]
optionel

Nom de modèle

Validations:

  • Must be a String

provisioning_template[template]
optionel

contenu du modèle, notamment les métadonnées

Validations:

  • Must be a String

provisioning_template[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type

options
optionel

Validations:

  • Must be a Hash

options[force]
optionel , nil autorisé

à utiliser si vous voulez mettre à jour les modèles verrouillés

Validations:

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

options[associate]
optionel , nil autorisé

détermine quand le modèle doit associer des objets en fonction de métadonnées, 'nouveau' signifie uniquement lors de la création d'un nouveau modèle, 'toujours' signifie à la fois pour les modèles nouveaux et existants en cours de mise à jour, 'jamais' ignore les métadonnées

Validations:

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

options[lock]
optionel , nil autorisé

Verrouiller les modèles importés (faux par défaut)

Validations:

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

options[default]
optionel , nil autorisé

Définit le modèle par défaut, signifiant qu'il sera automatiquement associé aux nouvelles organisations et nouveaux emplacements (faux par défaut)

Validations:

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


PUT /api/provisioning_templates/:id
Mise à jour d'un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

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
requis

Validations:

  • Must be a Hash

provisioning_template[name]
optionel

Nom de modèle

Validations:

  • Must be a String

provisioning_template[description]
optionel , nil autorisé

Validations:

  • Must be a String

provisioning_template[template]
optionel

Validations:

  • Must be a String

provisioning_template[snippet]
optionel , nil autorisé

Validations:

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

provisioning_template[audit_comment]
optionel , nil autorisé

Validations:

  • Must be a String

provisioning_template[template_kind_id]
optionel , nil autorisé

n'est pas applicable pour les snippets

Validations:

  • Must be a number.

provisioning_template[template_combinations_attributes]
optionel , nil autorisé

Tableau des combinaisons de modèles (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

provisioning_template[operatingsystem_ids]
optionel , nil autorisé

Tableau des ID de systèmes d'exploitation associés à ce modèle

Validations:

  • Must be an array of any type

provisioning_template[locked]
optionel , nil autorisé

Indique si le modèle peut être modifié

Validations:

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

provisioning_template[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


GET /api/provisioning_templates/revision

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

version
optionel

version de modèle

Validations:

  • Must be a String


DELETE /api/provisioning_templates/:id
Supprimer un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

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
Mise à jour du menu PXE par défaut sur tous les serveurs TFTP configurés

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/provisioning_templates/:id/clone
Cloner un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

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
requis

Validations:

  • Must be a Hash

provisioning_template[name]
requis

Nom de modèle

Validations:

  • Must be a String


GET /api/provisioning_templates/:id/export
Exporter un modèle de provisioning vers ERB

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

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