F5 Programmability Training > Class 1: Introduction to Automation & Orchestration > Module 2: Abstracting Services using iApp Templates Source | Edit on

Lab 2.2: Deploying iApp Templates on BIG-IP

digraph breadcrumb { rankdir="LR" ranksep=.4 node [fontsize=10,style="rounded,filled",shape=box,color=gray72,margin="0.05,0.05",height=0.1] fontsize = 10 labeljust="l" subgraph cluster_provider { style = "rounded,filled" color = lightgrey height = .75 label = "iApp Templates & Deployments" basics [label="iApp Basics",color="palegreen"] templates [label="iApp Templates",color="steelblue1"] deployments [label="iApp Deployments"] basics -> templates -> deployments } }

iApps typically come in the form of a .tmpl file, which contains the content needed for the BIG-IP to utilize it as a Service framework. Different toolkits will install iApps in different ways. We’ll be using the REST API in a raw form, so the content of the file is what we need. As a result, we need to ensure that the content of the iApp is URL encoded to make sure the BIG-IP reads the payload correctly. This is specific for the iApp deployment over REST API. When using other tools like Ansible, the whole .tmpl file can be uploaded, removing the need for encoding.

Note

This lab work will be performed from Lab 2.2 - Deploying iApp Templates on BIG-IP folder in the Postman Collection

lab-2-5

Task 1 - View Installed iApp Templates

Perform the following steps to complete this task:

  1. Send the Step 1: Get Installed iApp Templates request to view iApp templates installed on the BIG-IP device:

    lab-2-1

  2. Review the JSON response Body. The JSON payload shows iApp templates that are installed on the BIG-IP device:

    lab-2-2

Task 2 - Install the App Services iApp Template

Perform the following steps to complete this task:

  1. Send the Step 2: Install App Svcs v2.0.004 iApp Template request to install the App Services iApp template:

    lab-2-3

  2. Review the Request JSON Body, and the Response JSON Body. In this task we installed the App Services iApp Template and the BIG-IP sent back a response that the iApp was installed with its object name.

    Note

    The JSON body in the Request portion is automatically generated as part of the build process for the App Services iApp and the request in the Postman Collection was copied from a pre-built collection that ships with releases of the App Services iApp template.

    lab-2-6