Skip to main content
Feedback

How to Connect to MuleSoft

On this page you will learn how to connect your MuleSoft Gateway to Boomi's API Control Plane. Any API managed by MuleSoft's Anypoint platform will be discovered by the Control Plane, including APIs deployed to Flex and Mule gateways.

Prerequisites

To proceed, you will need the following:

  • A running instance of Boomi's API Control Plane.

  • Access to the instance of your MuleSoft Gateway.

  • Docker to utilize the image of our agent, which acts as an intermediary.

    note

    Known limitation: You can only query metrics for the past 30 days for MuleSoft APIs.

Create a new Environment

To get started, open your API Control Plane instance and follow the instructions below.

Add an Environment

  1. Navigate to Environments in the menu on the left side.

  2. Select the Register Environment button.

  3. Select Mulesoft.

  4. Select Next.

Choose Platform Type

Add Environment Information

  1. Add the following information to the Environment Wizard:
    • Technical Name - The technical name of an API must be unique.
    • Display Name - The display name can differ from the technical name and does not have to be unique.
    • URL - The url of your MuleSoft proxy (e.g. http://my-mulesoft:8000). API URLs are built by appending the path of the first route of a service (e.g. http://my-mulesoft:8000/petstore).
  2. Confirm by clicking on the Register Environment button.

How to - Environment Wizard - Add env information

  1. Select Next.

Connection Wizard

Provide the Gateway Information

The following section describes how to create the gateway configuration for a MuleSoft Gateway agent.

How to - Connection Wizard - Add Platform info

Add the following:

  1. Environment Id: In the MuleSoft Anypoint Platform, in API Manager, click the Environment button.

How to - MuleSoft Environment ID

  1. The following are located in the MuleSoft Anypoint platform, in Access Management > Business Groups:
    • Business Group ID
    • Client Id
    • Client Secret
    note

    To create the Client Id and Client Secret, you must create an application in Access Management > Connected Apps. Select App acts on its own behalf (client credentials) and then add scopes. Add scope Exchange Viewer in the Exchange category.

How to - MuleSoft ID

  1. Select Next.

Create an Agent as an Intermediary

The following describes how to create a Docker container for the agent. It is described using a Docker compose file so that additional agents can be easily added to your Docker stack later.

  1. Select Download and Next.

How to - Docker

  1. Docker Compose file options:
services:
controlplane-agent-mulesoft:
image: apiida/controlplane-agent:<The docker image of the API Control Plane Agent>
container_name: controlplane-agent-<agent name>
environment:
- backendUrl=<backend url>
- agentToken=12:<token>
- gateway.type=MULESOFT
- gateway.clientId=<client ID>
- gateway.clientSecret=<client secret>
- gateway.businessGroupId=<business group ID>
- gateway.environmentId=<environment ID>

How to - Docker

  1. Download the latest image of the agent:

    docker compose up

    • Starts the agent. It will connect automatically.

Check the Agent's Status

  1. Open your API Control Plane instance.

  2. Select Environments in the menu on the left side.

  3. Your Agent should now be connected to API Control Plane.

  • Click on the tile or the entry in the table to get more detailed information about the status of the connection. This can be very useful in case of an error.

You can now interact with your Gateways through Boomi's API Control Plane.

tip

It is easy to add more agents Repeat the steps here or that of another gateway and add the agents to the existing Docker compose file.

Control Plane and MuleSoft Entity Naming

Use the table below for entity naming in each area.

Control PlaneMuleSoft
APIThe APIs found in API Manager (sometimes referred to as API instances)
API Productn/a
ApplicationClient Application
SubscriptionContract
PlanSLA Tier
On this Page