# 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](/files/CZf0nrXig5hZmePadsWB)

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

![API Keys](/files/BryFjLky5hFiyyoVFXJa)

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

![API Keys](/files/0zfYsOUKwsOn7bnZxgON)

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

![API Keys](/files/I3guMUPnKI7WuvEXYXPO)

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmixer.com/connector-configuration/imperva.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
