You can change the type of policy deployed from Flow Hook to Flow Call Out or Flow Call Out to Flow Hook using the PingIntelligence policy tool. To change the type of policy complete the following steps:
  1. Undeploy the deployed policy by entering one of the following command based on the policy and certificate used:
    • Undeploy a Flow Hook policy using self-signed certificate:
      /opt/pingidentity/pi/apigee/bin/undeploy.sh -fh
      Checking Apigee connectivity
      Apigee connectivity ... success
      
      Undeploying PI Apigee policy Flow Hook
      
      1) Preproxy hook status ... undeployed
      2) Postproxy hook status ... undeployed
      3) Request policy undeployment status ... undeployed
      4) Response policy undeployment status ... undeployed
      5) Request policy deleting status ... deleted
      6) Response policy deleting status ... deleted
      7) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
      8) PingIntelligence-Config-KVM status ... not-applicable
      9) ASE Primary target server status ... undeployed
      10) ASE Secondary target server status ... undeployed
      11) Truststore status ... undeployed
      12) Cache status ... undeployed
      
      
      Undeployment of PI Policy finished successfully
      
    • Undeploy a Flow Hook policy using CA-signed certificate:
      opt/pingidentity/pi/apigee/bin/deploy.sh -fh -ca
      
      Checking Apigee connectivity
      Apigee connectivity ... success
      
      Undeploying PI Apigee policy Flow Hook
      
      1) Preproxy hook status ... undeployed
      2) Postproxy hook status ... undeployed
      3) Request policy undeployment status ... undeployed
      4) Response policy undeployment status ... undeployed
      5) Request policy deleting status ... deleted
      6) Response policy deleting status ... deleted
      7) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
      8) PingIntelligence-Config-KVM status ... not-applicable
      9) ASE Primary target server status ... undeployed
      10) ASE Secondary target server status ... undeployed
      11) Truststore status ... not-applicable - running using CA signed certificate
      12) Cache status ... undeployed
      
      
      Undeployment of PI Policy finished successfully
      
      
    • Undeploy a Flow Call Out policy using self-signed certificate:
      /opt/pingidentity/pi/apigee/bin/undeploy.sh -fc
      Checking Apigee connectivity
      Apigee connectivity ... success
      
      Undeploying PI Apigee policy Flow Call Out
      
      1) Preproxy hook status ... undeployed
      2) Postproxy hook status ... undeployed
      3) Request policy undeployment status ... undeployed
      4) Response policy undeployment status ... undeployed
      5) Request policy deleting status ... deleted
      6) Response policy deleting status ... deleted
      7) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
      8) PingIntelligence-Config-KVM status ... not-applicable
      9) ASE Primary target server status ... undeployed
      10) ASE Secondary target server status ... undeployed
      11) Truststore status ... undeployed
      12) Cache status ... undeployed
      
      
      Undeployment of PI Policy finished successfully
      
    • Undeploy a Flow Call Out policy using CA-signed certificate:
      opt/pingidentity/pi/apigee/bin/deploy.sh -fc -ca
      
      Checking Apigee connectivity
      Apigee connectivity ... success
      
      Undeploying PI Apigee policy Flow Call Out
      
      1) Preproxy hook status ... undeployed
      2) Postproxy hook status ... undeployed
      3) Request policy undeployment status ... undeployed
      4) Response policy undeployment status ... undeployed
      5) Request policy deleting status ... deleted
      6) Response policy deleting status ... deleted
      7) PingIntelligence-Encrypted-Config-KVM status ... not-applicable
      8) PingIntelligence-Config-KVM status ... not-applicable
      9) ASE Primary target server status ... undeployed
      10) ASE Secondary target server status ... undeployed
      11) Truststore status ... not-applicable - running using CA signed certificate
      12) Cache status ... undeployed
      
      
      Undeployment of PI Policy finished successfully
      
  2. Deploy the other policy by following the steps detailed for Flow Hook or Flow Call Out
Note: Using the above steps you can also change the use of security certificate from self-signed to CA-signed or from CA-signed to self-signed.