---
schema_version: "1"
id: 158f8e1aa85678143a29a5aca11b8266ffb2cae930ccf303b46b6dd039429c38
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.12/flex-gateway-secure-conn.md
canonical_url: https://docs.mulesoft.com/gateway/1.12/flex-gateway-secure-conn
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2e970b3eec73688012a7b58b01add2b6102663a346a2e6ab056f85358d64d21a
description: MuleSoft Documentation Site
release: "1.12"
latest: false
---
---
product: Omni Gateway
version: 1.12
---

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

## Apply an Inbound Policy

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

2.  From **API Instances** or **Agent and Tool Instances**, click the name of the instance 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.12/policies-included-directory).

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

8.  Click **Apply**.

You can apply a policy to the entire instance by default, or to specific methods and resources
within the API.

## Apply an Outbound Policy

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

2.  From **API Instances** or **Agent and Tool Instances**, click the name of the instance 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.12/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.12/)

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