Page created: 12 May 2021 |
Page updated: 1 Nov 2021
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
# 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 under TITLE list or enter the API name in Search
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:
Note: The assembly component ASE Reponse should always be the last component of your policy assembly.
- 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
- Copy the content of the gateway script: block containing ASE Response
component from pi_policy.yaml file and paste it as the last
component of your API..
- 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.
- 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.