Getting started Community Training Tutorials Documentation APIs, AI & Tools
Apply a Policy
For Mule Gateway, you apply included policies via API Manager. The following steps demonstrate this.
You can apply a policy either to the entire API (default) or to specific methods and resources of an API.
|
To apply a policy for Mule Gateway, a Mule application must first be deployed with a flow that uses an HTTP Listener component and is linked to the API through autodiscovery. The flow must use the HTTP Listener component specifically, not other connectors that use HTTP as an underlying transport. |
To apply a policy:
-
Go to Anypoint Platform > API Manager.
-
In API Administration click the name of the API to which to apply a policy.
-
From the left navigation menu, click Policies.
-
Click + Add policy.
-
Select the policy to apply.
-
Configure the required configuration parameters.
For policy configuration parameters, see Included Policies Directory.
-
Click Apply
Upgrade a Policy Definition
To upgrade a policy in API Manager:
-
Go to Anypoint Platform > API Manager.
-
In API Administration click the name of the API with the policy to upgrade.
-
From the left navigation menu, click Policies.
-
Click the more options menu (
) of the policy to upgrade, and then click Edit configuration. -
Select the latest version for Policy version.
-
Click Save.
Updating the policy definition version automatically checks for new implementation versions and updates accordingly.
Upgrade a Policy Implementation
To upgrade a policy implementation in API Manager:
-
Go to Anypoint Platform > API Manager.
-
In API Administration click the name of the API with the policy to upgrade.
-
From the left navigation menu, click Policies.
-
Click the more options menu (
) of the policy to upgrade, and then click Check for implementation updates. -
If implementation updates are available, click Update all.
-
Click Ok.



