18.4 Verify Deployment Connectivity
Create a directory for your project and prepare the Deployment Configuration File
deployment.config
inside your project folder.
[ACTIVE]
deployment=my_env
[my_env]
xforms_ip=<IP address of Data Transforms instance>
xforms_user= <user>
[my_adbs_env]
XFORMS_URL=<data transforms url>
xforms_user=<user>
tenancy_ocid=<tenancy OCID>
adw_name=<adw name given in OCI>
adw_ocid=<adw ocid>
Tip:
The above deployment.config connects to my_env deployment, which is marked ACTIVE.Create about.py
with the following code snippet:
from datatransforms.workbench import DataTransformsWorkbench,WorkbenchConfig
import logging
logging.getLogger().setLevel(logging.ERROR)
pswd = ... #securely fetch your password from keystore for deployment.
connect_params = WorkbenchConfig.get_workbench_config(pswd)
workbench = DataTransformsWorkbench()
workbench = DataTransformsWorkbench()
workbench.connect_workbench(connect_params)
workbench.print_about_string()
Directory structure of your project:
<ProjectDirectory>
|-deployment.config
|-about.py
Run about.py
using your IDE or CLI. CLI based run is given
below:
ProjectDirectory$ python3 about.py
Ouput produced from about.py
gives all the details of the
active Data Transforms instance:
Oracle Data Transforms - Deployment details
----------------------------------------------------------------------
repositoryVersion : <repo-vesion>
releaseName : <mp_listing_name>
Current Time in Deployment Instance : <current-time>
Deployment Type : <ADBS|Marketplac>
Deployment Instance : <REST URL of Data Transforms>
----------------------------------------------------------------------
Parent topic: Python API for Oracle Data Transforms