As of BlueCat Address Manager 9.5, Address Manager includes a revised API that lets developers use Address Manager features, referred to as the BlueCat Address Manager RESTful v2 API. The existing API is now referred to as the Legacy v1 API.
As of BlueCat Gateway v23.1, Gateway includes Python API clients that support both BlueCat Address Manager APIs. If workflows on your system need to use the REST v2 API Client, you must change the version of the REST API Client that Gateway uses.
There are two ways to change the REST API version:
In the
BAM_API_VERSION
environment variableWhen you run the docker container, specify the value of as a parameter with the
-e
option. For example:docker run -e BAM_API_VERSION=2 <other options> quay.io/bluecat/gateway:23.1.0
In the
config.json
file in the built-in or custom workspace.Before starting Gateway, edit the
config.json
file to change the value ofbam_api_version
to 1 (specifying the REST v1 client) or 2 (specifying the REST v2 client). If you set different versions in each of the built-in and custom workspaces, the version in the custom workspace takes precedence.
If you specify the client version in the
BAM_API_VERSION
environment variable, it will override any definedbam_api_version
value in anyconfig.json
file.If no API client version is specified at all (either as an environment variable or in the config.json file), the REST v1 client will be active by default.
For more details on using the REST v2 API client, see Developing workflows using the Address Manager RESTful v2 API.
For more details on troubleshootng REST API version settings, see Troubleshooting REST API version settings.