- 18 Oct 2024
-
DarkLight
-
PDF
Create a DNS A Record (Infoblox) - Jinja2 Templates
- Updated on 18 Oct 2024
-
DarkLight
-
PDF
Before we can get into the Platform, we need to log in to the Cloud Console and then launch our instance of IAP.
Jinja2 Template Video
Step 1
Just as a reminder, the URL to login to Cloud Console is hub.itential.io and from there you’ll enter <CUSTOMER ORG>. It will then take you to a login screen where you'll enter your email and password.
Step 2
What you see once you enter your username and password is our Cloud Console. This page gives you access to a number of things including training content, demo videos and most importantly for us today - our IAP instance.
Click on the blue box under launch to open up our cloud IAP instance.
Step 3
Before we start building our automation, we’re going to take a look at Jinja2 Templates. For those less familiar, Jinja2 is a templating language developed for Python that allows users to take structured data and format it for human readability. Here we’ll build a simple template that will show you how this is done. Part of today’s workflow will leverage a Jinja2 Template in order to format text for ServiceNow, so this small exercise will give you a better idea of how that workflow operates.
Go to Automation Studio.
Step 4
We would like to create a new Jinja2 template. Click the highlighted + button.
Step 5
The Create window opens. Click the What would you like to Create dropdown, and select Template from the list.
Step 6
Enter Template – [Your Initials] for the name. And enter Workshop for Group.
Step 7
Click the drop-down for Type. Select Jinja2 from the list.
Step 8
A description can also be added but is not required. Click Create.
Step 9
The Template opens. Notice there are two sides, one for the JSON data and another for the Jinja2 template text. We add the sample JSON data on the left and the JSON template text on the right.
Notice how the output changed. The JSON data merged with the Jinja2 template to complete the output.