Add PingIntelligence policy components
Complete the following steps before adding the PingIntelligence policy to your API:
-
Download the PingIntelligence policy from the ping identity download site.
-
Extract the policy by using the following command.
# tar –zxvf <<file name>>
For example,
# tar –zxvf pi-api-ibm-policy-4.1.0.tar.gz
Complete the following steps to add the PingIntelligence policy components to your API in IBM API Manager:
-
Log in to API Manger.
-
Click the Menu icon on the top-left corner, to open navigation pane.
-
Click Drafts in the navigation pane.
-
Click the APIs tab.
-
Click on your API underTITLE list or enter the API name inSearch APIs dialog box and select the API.
-
Click Source tab to edit your API definition.
-
Copy and paste the content of PingIntelligence policy into the Assembly block of your API definition at three places as illustrated:
-
Open the pi_policy.yaml file, copy the content of the set-variable: block having ASE Config component and paste it in the next line after execute: block in your API.
-
Next, copy the content of the gateway script: block containing ASE Request component from pi_policy.yaml file and paste it after the immediate last line of ASE Config component, that was copied in step 8.1.
-
Copy the content of thegateway script: block containing ASE Response component from pi_policy.yaml file and paste it as the last component of your API..
The assembly component ASE Reponse should always be the last component of your policy assembly.
-
-
Click the Validate icon to validate your changes.
-
Click the Save icon after completing the validation.
-
Click the Assemble tab to open the Assemble view. Verify the sequence of the components ASE Config, ASE Request, and ASE Response in the Policy Assembly. The order must match as highlighted in the red boxes of the following image.