This repository holds a sample stand-alone agent implementation Gradle project for connecting Azure API Gateway with API Control Plane, utilizing the Agent SDK. Key functionalities include:
- Registering Azure API Gateway with API Control Plane.
- Retrieving Azure API Gateway’s health status and sending it to API Control Plane.
The implementation utilizes the Manual approach, leveraging the Azure SDK for connection management and authentication. For details about the approaches, see Agent SDK documentation.
Note: The agent implementation is compatible with API Control Plane version 11.0.3.
· Access to Agent SDK Jars in Empower portal. For details, see How to access Agent SDK Jars.
· Cloned webmethods-api-control-plane-agent-azure Git Hub repository using any GIT client.
Let’s look at a sample scenario through which you can build a Gradle project using Visual Studio Code editor.
-
Unzip Agent SDK folder downloaded from the Empower portal and place the (api, core, and model) Jars under lib folder in the cloned repository.
-
Open Visual Studio Code editor.
-
Go to File > Add Folder to Workspace and select the cloned webmethods-api-control-plane-agent-azure repository.
-
Run the following command in the Visual Studio Terminal to build the project:
./gradlew build
Build Successful message appears, and the jars for the spring boot application is created at the following locations for application / azureagent / build / libs
Let’s look at a sample scenario through which you can deploy a spring boot application in Docker using Visual Studio Code editor.
Ensure that you have:
· Started the Docker client.
· API Control Plane 11.0.3 subscription.
· Verified if Azure API Gateway and API Control Plane for which you want to establish connectivity using the Agent are up and running.
· Created Runtime Type in API Control Plane to represent Azure API Gateway. For details, see Runtime Type Management REST API.
-
Go to webmethods-api-control-plane-agent-azure\application\azureagent using the following command in the Visual Studio Terminal:
cd application\azureagent
-
Run the following command to build the Docker image
docker build . --tag=<image-name>
For example: docker build . --tag=azure-agent-appln
- Verify if azure-agent-appln image is listed in the docker client.
Let’s look at a sample scenario through which you can run the spring boot application in Docker using Visual Studio Code editor.
- Run the following command:
docker-compose up -d