Referencing code inside BlueCat Gateway - Platform - BlueCat Gateway - 22.4.1

Gateway Administration Guide

Locale
English (United States)
Product name
BlueCat Gateway
Version
22.4.1

Do not reference modules, classes, or functions inside the BlueCat Gateway application outside of those defined in the BlueCat Address Manager Python API. All other code is considered internal to BlueCat Gateway and may change or not behave in the same way (or even exist) in future versions of Gateway.

An exception is the use of the Flask application application instance:

from main_app import app

You can use the app to access Flask properties and functions directly. As described in the Editing a workflow script, use the @route() decorator instead of than app.route(). You can also use app.logger for writing directly to Apache logs; see Logging events and monitoring BlueCat Gateway status for more details.