---
schema_version: "1"
id: 5a59b176e912e2fb6942aa9782c9ed549a836abaa42657ee5e85ed86498901e6
title: Applying Policies for Managed Flex Gateways and Connected Mode
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.9/flex-gateway-secure-conn.md
canonical_url: https://docs.mulesoft.com/gateway/1.9/flex-gateway-secure-conn
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c1afd7c3375fb7aa46806073629b371e395246b56cc2e56fd21874236ff3a932
description: MuleSoft Documentation Site
release: "1.9"
latest: false
---
---
product: Omni Gateway
version: 1.9
---

# Applying Policies for Managed Flex Gateways and Connected Mode

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

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](https://docs.mulesoft.com/gateway/1.9/policies-included-directory) and
[Outbound Policies Directory](https://docs.mulesoft.com/gateway/1.9/policies-outbound-directory).

## Apply an Inbound Policy

1.  Go to **Anypoint Platform > API Manager**.

2.  In **API Administration**, click the name of the API to which you want to apply a policy.

3.  From the side navigation panel, click **Policies**.

4.  Click **\+ Add policy**.

5.  Select the policy to apply.

6.  Configure the required parameters.

    For policy configuration parameters, see
    [Inbound Policies Directory](https://docs.mulesoft.com/gateway/1.9/policies-included-directory).

7.  If necessary, configure **Advanced options**.

8.  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

1.  Go to **Anypoint Platform > API Manager**.

2.  In **API Administration**, click the name of the API to which you want to apply a policy.

3.  From the side navigation panel, click **Policies**.

4.  Click the **Outbound policies** tab.

5.  Click **\+ Add outbound policy**.

6.  Select the **Upstream** to which you want to apply a policy.

7.  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.

8.  Click **Next**.

9.  Select the policy to apply.

10. Configure the required parameters.

    For policy configuration parameters, see
    [Outbound Policies Directory](https://docs.mulesoft.com/gateway/1.9/policies-outbound-directory).

11. If necessary, configure **Advanced options**.

12. Click **Apply**.

You can apply a policy to the entire upstream by default, or to specific methods and resources of
the upstream.

## See Also

- [Flex Gateway Overview](https://docs.mulesoft.com/gateway/1.9/)

- [Getting Started with Self-Managed Flex Gateway](https://docs.mulesoft.com/gateway/1.9/flex-gateway-getting-started)
