Deploy Application Using Anypoint CLI

Introduction

Anypoint Platform provides a command-line tool to work with the platform and Anypoint Platform Private Cloud Edition. The CLI tool can be used to deploy applications to Runtime Manager.

Setting up Anypoint CLI

Multi-Factor Authentication in Anypoint Platform

Multi-Factor Authentication (MFA) is a security mechanism wherein a user is granted access only after providing more than one method of authentication.

An organization administrator can make it mandatory for all non-SSO users to use MFA, exempt some accounts from this or make it optional for users — allowing users to enable it if they want.

Create an Email Newsletter Using Mule

This article shows how to create an email newsletter using Mule as shown below.

newsAPIHere, I have used NewsAPI, you can use any API of your choosing. Almost all APIs need clients to authenticate themselves before serving the request. So, the first step is to register for a dev account on the portal and get an API key.

Adding Server in Runtime Manager

On-Prem Mule Runtime instances/servers can be registered with the Anypoint Runtime Manager (ARM) and managed from there. Servers use Runtime agents to communicate with ARM. This approach of having self-provisioned Mule Runtime Servers connected to Anypoint Platform using Anypoint Runtime Manager Agent is called Hybrid implementation.

One advantage of having On-Prem or Hybrid implementation over Cloudhub is that multiple applications can be connected using Mule Domain Project allowing them to share resources and connector versions which is not possible on Cloudhub.

Custom Policy in Mule 4

Custom Policy in Mule 4

Mule provides a set of policies beforehand, but there might be a requirement that is not covered by predefined policies. In such cases, a custom policy can be developed. The process is a three-step workflow:

  • Developing the policy
  • Deploying/Uploading the policy to exchange
  • Applying the policy on API
You might also like:  Working With Custom Policy in Mule 4

Setting up and Creating the Project

Before diving into the development, setup Maven to create the required project structure.
In settings.xml , under the  profiles section, add the below profile:
<profile>
<id>archetype-repository</id>
<repositories>
<repository>
<id>archetype</id>
<name>MuleRepository</name>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/public</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</repository>
</repositories>
</profile>