- 18 Oct 2024
-
DarkLight
-
PDF
Create a DNS A Record (Infoblox) - Transformation
- Updated on 18 Oct 2024
-
DarkLight
-
PDF
We have collected the data. The next step is to build out our Transformation.
Transformation Video
Step 1
Click the + at the top of the left navigation panel.
Step 2
The Create window opens and this time we would like to create a Transformation. Click the drop-won and select Transformation from near the bottom.
Step 3
Give it the name: Lab – Create a Record – Infoblox JST – [Your Initials] and click Create.
Step 4
A clean transformation canvas opens with a large amount of empty space between the Incoming and Outgoing Schemas. Hover the mouse over the empty space at the top of the canvas. A dotted box will appear with a trash can icon. Use this to delete the extra space. We click the trash can icon.
Step 5
We can now see the Outgoing Schema. Click the Add + button for the Incoming Schema.
Step 6
Paste the copied JSON output on the right and click the Infer Schema From Example JSON on the left.
Step 7
The schema is automatically created. IAP digests the sample JSON, parses the data, determines appropriate data types and creates a JSON schema for it.
We just need to give it an ID. Enter formData for the ID.
Step 8
And click Save.
Step 9
The Incoming Schema is shown on the left. Next, we need to create an Outgoing Schema for aRecordData. To do this, click the Add + button on the right.
Select Outgoing Schema.
Step 10
We paste the example JSON from the code block in this article and click Infer Schema from Example JSON on the left.
{
"name": "",
"ipv4addr": "",
"view": ""
}
Step 11
The Outgoing Schema is automatically created. It just needs an ID. We add “aRecordData” for the $id and click Save..
Step 12
Now we need an fqdn Outgoing Schema. Click the Add + button below Outgoing Schema.
Step 13
And choose Outgoing Schema from the drop-down list.
Step 14
For $id, enter fqdn.
Step 15
For type, enter string. Click Save.
Step 16
Next, we need to add two methods to the Transformation – toLowerCase and concat. In the Search box at the top of the right column, enter lower to filter.
Step 17
Drag the toLowerCase method to the canvas.
Note: For additional information about a method, click the i icon next to the method name.
Step 18
Repeat these steps to filter for the concat method.
Step 19
Enter concat in the search box and drag concat (string) to the canvas.
Step 20
The next step is to connect the schemas.
Click the half circle next to dnsView. Drag a line to the half-circle for view in the Outgoing Schema.
Step 21
Next, connect the Incoming Schema hostName to the toLowerCase Method Parameters string.
Step 22
Connect the Incoming Schema domain to the Concat strN string.
Step 23
And the last Incoming Schema, connect ipAddress to the Outgoing Schema ipv4addr.
Step 24
Next, connect the concat return to name and fqdn on the Outgoing Schema.
Step 25
Connect the toLowerCase Return to the concat str parameter. Add a . in the str2 property. Click Save.
Step 26
The Transformation can now be tested. Click the Run button on the toolbar.
Step 27
The JSON Form inputs are shown. Click Run.
Step 28
The results are shown.