https://github.com/axway/agents-webmethods
https://github.com/axway/agents-webmethods
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/axway/agents-webmethods
- Owner: Axway
- Created: 2023-04-12T18:25:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T22:58:26.000Z (almost 2 years ago)
- Last Synced: 2024-08-13T01:14:18.584Z (almost 2 years ago)
- Language: Go
- Size: 27.6 MB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Prerequisites
* You need an Axway Platform user account that is assigned the AMPLIFY Central admin role
* Your Wemethods API Gateway should be up and running and have APIs to be discovered and exposed in AMPLIFY Central
Let’s get started!
## Prepare AMPLIFY Central Environments
In this section we'll:
* [Create an environment in Central](#create-an-environment-in-central)
* [Create a service account](#create-a-service-account)
### Create an environment in Central
* Log into [Amplify Central](https://apicentral.axway.com)
* Navigate to "Topology" then "Environments"
* Click "+ Environment"
* Select a name
* Click "Save"
* To enable the viewing of the agent status in Amplify see [Visualize the agent status](https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/environment_agent_resources/index.html#add-your-agent-resources-to-the-environment)
### Create a service account
* Create a public and private key pair locally using the openssl command
```sh
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits: 2048
openssl rsa -in private_key.pem -pubout -out public_key.pem
```
* Log into the [Amplify Platform](https://platform.axway.com)
* Navigate to "Organization" then "Service Accounts"
* Click "+ Service Account"
* Select a name
* Optionally add a description
* Select "Client Certificate"
* Select "Provide public key"
* Select or paste the contents of the public_key.pem file
* Select "Central admin"
* Click "Save"
* Note the Client ID value, this and the key files will be needed for the agents
## Prepare Webmethods APIM
* Create an webmethods account
* Note the username and password used as the agents will need this to run
* Add a developer that will be the owner of all applications created by the agent
## Setup agent Environment Variables
The following environment variables file should be created for executing both of the agents
```ini
CENTRAL_ORGANIZATIONID=
CENTRAL_TEAM=
CENTRAL_ENVIRONMENT= # created in Prepare AMPLIFY Central Environments step
CENTRAL_AUTH_CLIENTID= # created in Prepare AMPLIFY Central Environments step
CENTRAL_AUTH_PRIVATEKEY=/keys/private_key.pem # path to the key file created with openssl
CENTRAL_AUTH_PUBLICKEY=/keys/public_key.pem # path to the key file created with openssl
WEBMETHODS_URL= # created in Prepare Webmethods agent step
WEBMETHODS_MATURITYSTATE= # created in Webmethods agent step
WEBMETHODS_FILTER= # created in Webmethods agent step
WEBMETHODS_AUTH_USERNAME= # created in Prepare Webmethods agent step
WEBMETHODS_AUTH_PASSWORD= # created in Prepare Webmethods agent step
LOG_LEVEL=info
LOG_OUTPUT=stdout
```
## Discovery Agent
Reference: [Discovery Agent](README_discovery.md)
## Traceability Agent
Reference: [Traceability Agent](README_traceability.md)