1) Download and unzip the policy bundle
Download alma-mule-policy.zip from your Alma distribution channel.
Open the extracted policy folder.
You should see the Mule 4 custom policy files, including pom.xml and template.xml.
Update ~/.m2/settings.xml with your Anypoint credentials:
Keep the server ID as anypoint-exchange-v3. MuleSoft uses that value during mvn clean deploy.
4) Apply the policy in API Manager
After the Maven publish succeeds:
Open API Manager in Anypoint Platform.
On the API page, open Policies.
In the policies list, find the uploaded Alma Capture Policy.
Save and apply the configuration.
Use the screenshots below for the UI flow.
From the API page, open Policies to see the uploaded Alma Capture Policy. Open the target API and start the policy flow. Select Alma Capture Policy from the available policies. Review the policy configuration before applying it. Optional: capture only specific APIs
If you only want to capture specific APIs, open the policy’s Advanced section.
Select the HTTP method, then add an API regex for the endpoints you want to capture.
Use this to limit capture to specific routes instead of all traffic on the API.
Use the Advanced section to filter capture by HTTP method and API regex.