After configuring the PingIntelligence bundle, import it into the CA API Gateway.
PingIntelligence provides a script to
import the policy. To import the bundle:
-
- :
- :
- :
- Open the import_pingintelligence.sh file in a text editor.
-
Configure the following values:
Value Description GW
The API gateway hostname and port
GW_user admin:password
The API gateway username
GW_PASS_B64
A Base64 encoded password used to encrypt and decrypt secure passwords
-
Run the import_pingintelligence.sh script.
After the import script is run, the PingIntelligence policy is installed in the API gateway.
-
To verify the policy import, connect to the API gateway using the CA API
Gateway Policy Manager. Verify the PingIntelligence
folder is visible in the lower left-hand side window.
The following is a sample import_pingintelligence.sh script:
!/usr/bin/env bash # Configure the gateway host and port and user credentials # GW=localhost:8443 GW_USER=admin:password GW_PASS_B64=**********= # Import the folder 'PingIntelligence' # curl -k -u $GW_USER -X PUT -H "Content-Type: application/xml" -H "L7-key-passphrase: $GW_PASS_B64" "https://$GW/restman/1.0/bundle" -d @../docker-build/add-ons/ssg/policies/pingintelligence.bundle # Import cluster properties that configure the PingIntelligence bundle # # ase_host_https # ase_path_request # ase_path_response # ase_host2_https # ase_path2_request # ase_path2_response # ase_request_connection_timeout # ase_request_read_timeout # ase_response_connection_timeout # ase_response_read_timeout # curl -k -u $GW_USER -X PUT -H "Content-Type: application/xml" "https://$GW/restman/1.0/bundle" -d @../docker-build/add-ons/ssg/policies/pingintelligence-properties.bundle