NOTE: Some aspects of this product are in Beta. The hybrid installation options are GA. To join the Beta program, reach out to your Apigee representative.

Add a shared flow to a flow hook

Flow hooks perform boilerplate request pre-processing or response post-processing across a set of APIs. You do this by defining a shared flow and then attaching it to one of the four possible flow hooks.

This section describes how to use the hybrid UI to add a shared flow to a flow hook. You can also use the Flowhooks API to manage flow hooks.

Before you can use a flow hook, you must create a new shared flow as described in Creating a shared flow in the Edge UI.

To add a shared flow to a flow hook:

  1. Open the Apigee UI in a browser.
  2. Select Admin > Environments > Flow Hooks.

    The Flow Hooks view displays:

  3. From the environment drop-down list, select the environment that you want to modify.

    The UI displays a list of flow hooks and any shared flows associated with them. If there are no shared flows, then the list is empty.

  4. In the list of flow hooks, locate the flow hook to which you want to attach the shared flow.

    You can choose from the following flow hooks:

    Flow Hook Description
    Pre-proxy Executes before a proxy endpoint executes.
    Pre-target Executes before a target endpoint executes.
    Post-proxy Executes after the target response executes.
    Post-target Executes after the proxy endpoint executes, but before the response is sent back to the client.
  5. In the Shared Flow column, select the pencil icon next to the flow hook.

    The Shared flow for flow_hook dialog box displays:

  6. From the Shared flow drop-down list, select a shared flow that you want to attach to the flow hook. If there are no shared flows in the list, you must create one first, as described in Creating a shared flow in the Edge UI.
  7. Click OK.

    Hybrid adds the new shared flow to the flow hook.