The WorksAudit Book
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode

Query Lite API Key

Query Lite API Key

Accessing Query Lite API service requires an API Key. This API Key is issued for each tenant and landscape pair for each environment. The script to generate API Key is implemented as a patch (21.06.002).

Generating API Key for Development Environments

The script to generate API Key requires 3 environment variables to be set as shown in the following example:

export ENVIRONMENT_NAME=eva
export TENANT_NAME=accsy
export LANDSCAPE_NAME=eval

Once these environment variables are set (and the AWS credentials are set), you can simply execute the script as such:

python3 main.py

After the script is successfully executed, you can get the API Key from AWS console:

API Gateway > API > wap-audit-api-gateway-{env} > API Keys (Left Sidebar Menu) > {tenant}-{landscape} API Key for {env} > API Key Show

Generating API Key for Production Environments

For generating the API Key in production environments, ask BAP SRE to execute the patch with the appropriate environment variables as described in the previous section.