Importing Jinja Templates
Usually this step is not done using Postman, but rather done using an automation framework capable of reading external files. This is to import the Jinja Orchestrator templates downloaded from the GitHub repository (without the need to copy and paste them manually into the API request body). For a reference of the API call, see the FortiManager API on FNDN (login required). |
To import the templates interactively:
-
Go to Device Manager > Provisioning Templates. Under the CLI tab, click More > Import.
-
Drag and drop the Project Template file, or click Add Files to upload it.
-
Make sure the Script Name is set to Project and Script Type is set to Jinja Script:
The naming is important because all the other templates use the Project Template as their dataset by referring to it by the name "Project".
-
Click Import. FortiManager will automatically suggest creating all the variables referred to in the Project Template. Be sure to create them all, and there is no need to set any values at this stage:
-
Click Import again. Now it should succeed.
-
Repeat the above steps to import all the other Jinja Templates in our set. Remember to set the Script Type to Jinja Script for all the files:
-
Click Import. FortiManager will suggest creating additional variables, such as
profile
andregion
. As before, be sure to create addition variables, but do not set them at this stage. -
Click Import again and make sure it succeeds.