Introduction

You are able to create a new AppWAN by uploading it as code. Using this ‘as code’ functionality, you can create an exact replica of an AppWAN you've already added or use your existing AppWAN as a template to create a new one. When creating a new AppWAN, ensure that each name is unique. 

Your Client as Code

To view your client as code, click on the green globe icon to open the navigation menu. From there, click on Manage AppWANs and navigate to Manage AppWANs from the list at the top of the page. From this menu, you are able to select one of your AppWANS to download as a YML file. Click the ellipses menu for the AppWAN that you'd like to export as a YML file. 

appwan_elipses_menu.png

Your YML file will look something like what is below. This file will have all the information pertaining to your AppWAN and any endpoints that are linked to that AppWAN. 

appwan_YML_snippet.png

Create a New AppWAN from Code

The steps to create your new AppWAN as code are similar to the usual steps for creating a new AppWAN. Navigate to the Manage AppWANs page. Click the blue plus-sign icon in the upper-right hand corner of the page to open the ‘Create a New AppWAN' menu. The bottom row center option will show 'Import Your AppWAN as Code.' Click 'Create AppWAN' to get started uploading your YML file. 

create_appwan_menu.png

A new wizard will appear with options to download a template AppWAN YML or import your YML file. Select 'Download an Example File' to view what variables are necessary and make edits directly to the template if you'd like. Reminder: all new AppWANs must have a unique name. Any AppWAN with a duplicate name will be skipped during the process. 

import_appwan_as_code.png

Below is an example of the template YML file for creating an AppWAN as code. It will show all of the available components that you are able to edit as needed. 

When editing the templates or your AppWAN in YML format, you can add clients and gateways if desired. If gateways or clients are created under the 'Resources' section of the YML, these components will be created separately from the AppWAN. If gateways or clients are added under the 'Members' section of the YML, these components will be created and associated with the AppWAN. 

Screen_Shot_2020-06-02_at_11.53.36_AM.pngScreen_Shot_2020-06-02_at_11.53.58_AM.png

When you are ready to import your YML file, search your computer library or drag and drop the file into the upload box. Next, click create to fully import your YML and begin creating your new AppWAN as code. 

Details about your AppWAN's progress will be displayed once the process has started. This process may take a few minutes to complete. Although the endpoints are not actually being created, the progress report will show status updates for those steps anyways. 

appwan_progress.png

You can click 'escape' at any time and continue with other work while your AppWAN is being created. Navigate to your network dashboard or Manage AppWANs to see if any errors occurred. On the Manage AppWANs page, your new AppWAN will have a spiraling grey circle next to its name until it is created, at which point the circle will turn green. If you choose to stay on the AppWAN as code progress page, a summary report will be presented to you once your AppWAN is finished. 

appwan_summary.png

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.