Applying Policies for Managed Flex Gateways and Connected Mode
For Managed Flex Gateway and Flex Gateway running in Connected Mode, you apply inbound and outbound policies using API Manager. To find the policies provided by Flex Gateway, see Inbound Policies Directory and Outbound Policies Directory.
Apply an Inbound Policy
-
Go to Anypoint Platform > API Manager.
-
In API Administration, click the name of the API to which you want to apply a policy.
-
From the side navigation panel, click Policies.
-
Click + Add policy.
-
Select the policy to apply.
-
Configure the required parameters.
For policy configuration parameters, see Inbound Policies Directory.
-
If necessary, configure Advanced options.
-
Click Apply.
You can apply a policy to the entire API by default, or to specific methods and resources within the API.
Apply an Outbound Policy
-
Go to Anypoint Platform > API Manager.
-
In API Administration, click the name of the API to which you want to apply a policy.
-
From the side navigation panel, click Policies.
-
Click the Outbound policies tab.
-
Click + Add outbound policy.
-
Select the Upstream to which you want to apply a policy.
-
If you want to apply the policy to an additional upstream, click Add upstream and select the additional upstream. Repeat this step for all upstreams to which you want to apply the policy.
-
Click Next.
-
Select the policy to apply.
-
Configure the required parameters.
For policy configuration parameters, see Outbound Policies Directory.
-
If necessary, configure Advanced options.
-
Click Apply.
You can apply a policy to the entire upstream by default, or to specific methods and resources of the upstream.