Beispiele

POST /api/provisioning_templates/import
{
  "provisioning_template": {
    "name": "provisioning_template110",
    "template": "<%#\nsnippet: true\n-%>\nbbbb"
  }
}
201
{
  "template": "<%#\nsnippet: true\n-%>\nbbbb",
  "name": "provisioning_template110",
  "id": 1007981707,
  "snippet": true,
  "description": null,
  "template_kind_id": null,
  "created_at": "2019-11-07T08:44:14.418Z",
  "updated_at": "2019-11-07T08:44:14.439Z",
  "locked": false,
  "default": false,
  "vendor": null,
  "os_family": null
}

Parameter

Parametername Beschreibung
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

provisioning_template
verpflichtend

Validations:

  • Must be a Hash

provisioning_template[name]
optional

Vorlagenname

Validations:

  • Must be a String

provisioning_template[template]
optional

Vorlagen-Inhalte die Meta-Daten enthalten

Validations:

  • Must be a String

provisioning_template[location_ids]
optional , nil erlaubt

Standorte durch angegebene Kennungen ERSETZEN

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
optional , nil erlaubt

Organisationen durch angegebene Kennungen ERSETZEN

Validations:

  • Must be an array of any type

options
optional

Validations:

  • Must be a Hash

options[force]
optional , nil erlaubt

Nutzen, wenn sie gesperrte Vorlagen aktualisieren wollen

Validations:

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

options[associate]
optional , nil erlaubt

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]
optional , nil erlaubt

Importierte Templates sperren (Standardwert: false)

Validations:

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

options[default]
optional , nil erlaubt

macht eine Vorlage zur Standardvorlage. Standardvorlagen werden automatisch zu neuen Organisationen und Standorten hinzugefügt. (Standardmäßig falsch)

Validations:

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