# Imperva

### Authentication

To authenticate Imperva connector, an API Key is required. To obtain this key, log in to your Imperva account and navigate to **Account** > **My Profile** > **API Keys**. Click on "Add API Key" to generate a new key. Enter a name (and optionally otherparameters) for the API Key and click on "Create".

![API Keys](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-4e0b70f21a122dc91d0f59983595eecd33be02ec%2Fimperva1.png?alt=media)

Take note of the API ID and API Key. You will need these to authenticate the connector.

![API Keys](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-557c1153a1b4272edf4cad94c41246a32ab9ebc6%2Fimperva2.png?alt=media)

You can also view the API Key details in the API Keys section.

![API Keys](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-1191567be4085f069f464b3c62d85c8359f88f86%2Fimperva3.png?alt=media)

In the Imperva connector authentication window, use your Imperva API ID and API Key to log in.

![API Keys](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-3d1f11512125f06e3cc0c0ee9e7519c5e368fb3c%2Fimperva4.png?alt=media)

### Configuration

There are three optional configuration parameters for the `SetBlockIPRule` action of the Imperva connector. See the table below for more information.

| Parameter                    | Required | Default | Description                                                                                                                                                  |
| ---------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `blockIpMaxIpsPerRule`       | No       | 20      | The maximum number of IP addresses that can be added to a block rule.                                                                                        |
| `blockIpMaxParallelRequests` | No       | 5       | The maximum number of parallel requests that can be made to block IP addresses.                                                                              |
| `blockIpMaxRulesInImperva`   | No       | 500     | The maximum number of custom rules that can be added to Imperva. See <https://docs.imperva.com/bundle/cloud-application-security/page/rules/create-rule.htm> |
