Esempi

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
}

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.