---
title: Importing the PingIntelligence policy
description: After configuring the PingIntelligence bundle, import it into the CA API Gateway.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_ca_api_import_policy
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_ca_api_import_policy.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result:
  example: Example:
---

# Importing the PingIntelligence policy

After configuring the PingIntelligence bundle, import it into the CA API Gateway.

## About this task

PingIntelligence provides a script to import the policy. To import the bundle:

## Steps

1. Open the `import_pingintelligence.sh` file in a text editor.

2. 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 |

3. Run the `import_pingintelligence.sh` script.

   ### Result:

   After the import script is run, the PingIntelligence policy is installed in the API gateway.

4. 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.

   ### Example:

   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
   ```
