BIG-IQ AS3 Template Library
Welcome to the repository for BIG-IQ Application Services 3 Extension (AS3) templates!
If you’re here, that means you want to leverage F5’s declarative technology and automation tools in your use of BIG-IQ Centralized Management to manage your F5 portfolio — which is a great choice! F5 will continue aligning behind declarative frameworks and toolsets — simplifying the process of provisioning and configuring BIG-IP application services. This is because declarative interfaces and APIs require only that you know what you end state configuration requirements are — not the steps to achieve that end state. So, members of your team who don’t have a ton of networking, security, or F5 knowledge can still work with F5 technologies to ensure the protection and performance of their applications.
The AS3 templates listed below are meant to be installed on BIG-IQ and will be used to configure and deploy L4-L7 services on BIG-IPs being managed by your BIG-IQ — similarly to how you would use AS3 on BIG-IP. You can use these templates as is or make custom changes to suit your specific needs.
To use these templates, you’ll need the following components:
- BIG-IQ Centralized Management
- Application Services 3 Extensions (AS3) installed on BIG-IQ
In addition to the software components, you’ll need to ensure that you’re running the appropriate versions — this information can be found in the template list below. If you would like more information on AS3, how it works, and how to use it with BIG-IQ, check out this article on CloudDocs: Using AS3 with BIG-IQ.
Not finding the specific template use case you’re looking for? Check out additional, community-submitted AS3 templates for BIG-IQ.
Now, it’s time to get automating!
List of AS3 F5 Default Templates
Templates (schemaOverlay) | Version | Description | Min AS3 version | Min BIG-IQ version |
---|---|---|---|---|
AS3-F5-HTTP-lb-template-big-iq-default | v1 | For load balancing an HTTP application on port 80 with HTTP analytics. | 3.12 | 7.0 |
AS3-F5-HTTP-lb-traffic-capture-template-big-iq-default | v1 | For load balancing an HTTP application on port 80 with HTTP traffic capture and HTTP analytics. | 3.12 | 7.0 |
AS3-F5-HTTPS-offload-lb-PEM-template-big-iq-default | v1 | For load balancing an HTTPS application on port 443 with SSL offloading on BIG-IP and using a custom HTTP monitor (Certificate and Key in PEM format) with HTTP analytics. | 3.12 | 7.0 |
AS3-F5-HTTPS-offload-lb-existing-cert-template-big-iq-default | v1 | For load balancing an HTTPS application on port 443 with SSL offloading on BIG-IP using existing Certificate and Key on BIG-IP with HTTP analytics. | 3.12 | 7.0 |
AS3-F5-HTTPS-offload-lb-existing-SSL-profile-template-big-iq-default | v1 | For load balancing an HTTPS application on port 443 with SSL offloading on BIG-IP using existing SSL profile on BIG-IP. | 3.18 | 7.1 |
AS3-F5-HTTPS-WAF-existing-lb-template-big-iq-default | v1 | For load balancing an HTTPS application on port 443 with a Web Application Firewall policy & certificates existing on BIG-IP and HTTP analytics. | 3.12 | 7.0 |
AS3-F5-HTTPS-WAF-external-url-lb-template-big-iq-default | v2 | For load balancing an HTTPS application on port 443 with a Web Application Firewall (external URL) policy using an OWASP protection settings with minimum false positive (v13.1) and HTTP analytics. Look for other ASM Policies Available on DevCentral | 3.18 | 7.1 |
AS3-F5-TCP-lb-template-big-iq-default | v2 | For load balancing a TCP-based application with TCP analytics. | 3.18 | 7.1 |
AS3-F5-FastL4-TCP-lb-template-big-iq-default | v2 | For load balancing a TCP-based application with a FastL4 profile and TCP analytics. | 3.18 | 7.1 |
AS3-F5-UDP-lb-template-big-iq-default | v1 | For load balancing a UDP-based application. | 3.12 | 7.0 |
AS3-F5-DNS-FQDN-A-type-template-big-iq-default | v1 | For global load balancing distribution of DNS name resolution requests A type. | 3.12 | 7.0 |
AS3-F5-DCD-lb-ASM-request-logging-events-template-big-iq-default | v1 | For ASM request logging events load balancing to BIG-IQ DCDs. | 3.12 | 7.0 |
Note: The AS3 naming convention for TLS Server and TLS Client differs from traditional BIG-IP terminology to better comply with industry usage, but may be slightly confusing for long-time BIG-IP users. The AS3 TLS_Server class is for connections arriving to the BIG-IP, which creates a “client SSL profile” object on the BIG-IP. The AS3 TLS_Client class if for connections leaving the BIG-IP, which creates a “server SSL profile” on the BIG-IP. See TLS_Server and TLS_Client in the Schema Reference for more information (more tips and warnings).
There are two methods you can use to download these templates and import then into your BIG-IQ so that you can use them.
- If you are comfortable logging in to your BIG-IQ via SSH and executing a script, use Importing AS3 templates to your BIG-IQ using a script. This method uses an API call to access a JSON file.
- If you are more comfortable with an application with a graphical user interface, use Importing AS3 templates to your BIG-IQ using Postman. This method uses an application named Postman to import the templates directly to your BIG-IQ.
Importing AS3 templates to your BIG-IQ using a script
The following steps assume that you have completed the initial setup for your BIG-IQ and have admin permissions to log in to it via SSH. Additionally, for the script to run successfully, the DNS lookup server addresses must be correctly specified.
-
Open an SSH session to your BIG-IQ, and log in as an admin.
-
From the command prompt, run the following sequence of commands. (You can copy and paste the entire sequence directly to the command line.)
bash
cd /home/admin;
rm -rf f5-big-iq*.tar.gz f5devcentral-f5-big-iq-*;
curl -L https://github.com/f5devcentral/f5-big-iq/tarball/7.1.0 > f5-big-iq.tar.gz;
tar -xzvf f5-big-iq.tar.gz;
cd f5devcentral-f5-big-iq-*/f5-appsvcs-templates-big-iq/default/json/;
for json in *.json; do
curl -s -k -H "Content-Type: application/json" -X POST -d @$json http://localhost:8100/cm/global/appsvcs-templates ;
done
- Log in to your primary BIG-IQ device and navigate to Applications > APPLICATION TEMPLATES and verify that the templates you imported are listed under AS3 Templates.
Note: Before you can use an AS3 template, it must be Published (read-only).
- For more information on how to use an AS3 template to deploy an AS3 Application using the BIG-IQ, see BIG-IQ documentation
Importing AS3 templates to your BIG-IQ using Postman
-
Use the Postman Import feature to import the Postman Collection and Environment. To do this:
- Click the Import button.
- Click Import From Link.
- For the Postman Collection, paste in the following:
https://raw.githubusercontent.com/f5devcentral/f5-big-iq/7.1.0/f5-appsvcs-templates-big-iq/default/postman/default-as3-f5-all-templates-big-iq.postman_collection.json
and then click Import. - Repeat the last 3 sub-steps, but this time paste in the following for the Postman Environment:
https://raw.githubusercontent.com/f5devcentral/f5-big-iq/7.1.0/f5-appsvcs-templates-big-iq/default/postman/default-as3-f5-all-templates-big-iq.postman_environment.json
.
- Set your
Primary BIG-IQ CM IP address
in the Postman Environment. To do this:- Click the Settings icon to open the Manage Environments screen.
- Click
default-as3-f5-all-templates-big-iq
. - For the
bigiq_mgmt
variable, type the management IP address of your BIG-IQ in theCURRENT VALUE
- Click Update.
- Close the Manage Environments screen.
-
Specify the BIG-IQ device's admin user
username
&password
so that Postman can access it. To do this:- Select the
POST
namedAuthenticate to BIG-IQ
, as shown in the screen shot. - On the Body tab, type:
>"username": "admin", >"username": "admin", >"loginProviderName": "tmos",
- Save the collection.
- Select the
- Run the Import Collection in this environment. To do this:
- Open the Postman Runner.
- For the Collection, select default-as3-f5-all-templates-big-iq.
- For the Environment, select default-as3-f5-all-templates-big-iq.
- Click Run default-as3-f5-all-templates-big-iq.
- When the Post Collection finishes, the result should be green status icons and
200 OK
for each post.
- Log in to your primary BIG-IQ device and navigate to Applications > APPLICATION TEMPLATES and verify that the templates you imported are listed under AS3 Templates.
Note: Before you can use an AS3 template, it must be Published (read-only).
- For more information on how to use an AS3 template to deploy an AS3 Application using the BIG-IQ, see BIG-IQ documentation
Support
Bugs and enhancements can be made by opening an issue within the GitHub repository.
Because BIG-IQ is has been created and fully tested by F5 Networks, it is fully supported by F5. This means you can get assistance if necessary from F5 Technical Support.
Copyright
Copyright 2014-2021 F5 Networks Inc.
F5 Networks Contributor License Agreement
Before you start contributing to any project sponsored by F5 Networks, Inc. (F5) on GitHub, you will need to sign a Contributor License Agreement (CLA).
If you are signing as an individual, we recommend that you talk to your employer (if applicable) before signing the CLA since some employment agreements may have restrictions on your contributions to other projects. Otherwise by submitting a CLA you represent that you are legally entitled to grant the licenses recited therein.
If your employer has rights to intellectual property that you create, such as your contributions, you represent that you have received permission to make contributions on behalf of that employer, that your employer has waived such rights for your contributions, or that your employer has executed a separate CLA with F5.
If you are signing on behalf of a company, you represent that you are legally entitled to grant the license recited therein. You represent further that each employee of the entity that submits contributions is authorized to submit such contributions on behalf of the entity pursuant to the CLA.