---
title: Deploying the PingIntelligence policy for flow hook
description: With a flow hook, the PingIntelligence shared flow is applied to all APIs in the environment of an organization.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_apigee_deploy_flow_hook
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_apigee_deploy_flow_hook.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# Deploying the PingIntelligence policy for flow hook

## About this task

With a flow hook, the PingIntelligence shared flow is applied to all APIs in the environment of an organization.

## Steps

1. Deploy the shared flow:

   ### Choose from:

   * Deploy with self-signed certificate: To deploy the PingIntelligence policy with self-signed certificate, run the following command.

     ```
     /opt/pingidentity/pi/apigee/bin/deploy.sh -fh
     Checking Apigee connectivity
     Apigee connectivity ... success
     Generating policies

     Deploying PI Apigee policy Flow Hook

     1) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
     2) PingIntelligence-Config-KVM status ... not-applicable
     3) ASE Server status ... deployed
     4) Truststore status ... deployed
     5) Upload pem file status ... deployed
     6) Cache status ... deployed
     7) Request policy upload status ... deployed
     8) Response policy upload status ... deployed
     9) Request policy deployment status ... deployed
     10) Response policy deployment status ... deployed
     11) Preproxy Flow hook status ... deployed
     12) Postproxy Flow hook status ... deployed

     Deployment of PI Policy finished successfully
     ```

   * Deploy with CA-signed certificate: To deploy the PingIntelligence policy with CA-signed certificate, run the following command.

     ```
     /opt/pingidentity/pi/apigee/bin/deploy.sh -fh -ca

     Checking Apigee connectivity
     Apigee connectivity ... success
     Generating policies

     Deploying PI Apigee policy Flow Hook

     1) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
     2) PingIntelligence-Config-KVM status ... not-applicable
     3) ASE Server status ... deployed
     4) Truststore status ... not-applicable - running using CA signed certificate
     5) Upload pem file status ... not-applicable - running using CA signed certificate
     6) Cache status ... deployed
     7) Request policy upload status ... deployed
     8) Response policy upload status ... deployed
     9) Request policy deployment status ... deployed
     10) Response policy deployment status ... deployed
     11) Preproxy Flow hook status ... deployed
     12) Postproxy Flow hook status ... deployed

     Deployment of PI Policy finished successfully
     ```

2. After you deploy the flow hook using the PingIntelligence tool, to verify the status of the deployment, run the following command:

   ```
   /opt/pingidentity/pi/apigee/bin/status.sh
   Checking Apigee connectivity
   Apigee connectivity ... success

   Checking the PI Apigee Policy Flow Hook deployment status

   1) PingIntelligence-Config-KVM status ... not applicable
   2) PingIntelligence-Encrypted-Config-KVM status ... not applicable
   3) ASE target status ... deployed
   4) Cache status ... deployed
   5) Truststore status ... deployed
   6) Request Policy status ... deployed
   7) Response Policy status ... deployed
   8) Preproxy hook status ... deployed
   9) Postproxy hook status ... deployed

   PI Apigee Policy is already installed
   ```
