> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.11/configure-cortex-xsoar/integrations/forward-requests-to-long-running-integrations.md).

# Forward requests to long-running integrations

Some long-running integrations provide internal data via API calls, to your third-party software, such as a firewall. You can set up Cortex XSOAR to allow third-party software to access long-running integrations installed either on the Cortex XSOAR tenant or on an engine.

{% hint style="info" %}

### Important

To ensure reliable and secure communication with Cortex XSOAR, you need to add the following DNS records:

* ext-FQDN - The Cortex XSOAR DNS name mapped to the external IP address. For example, `ext-xsoar.mycompany.com`.
* API-FQDN - The Cortex XSOAR DNS name mapped to the API IP address. For example, `api-xsoar.mycompany.com`.
  {% endhint %}

Long-running integrations provide internal data via API calls such as:

| Integration                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                              | See More                                                                                                    |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| O365 Teams (Using Graph API)      | Get authorized access to a user's Teams app in a personal or organization account.                                                                                                                                                                                                                                                                                                                                                       | [O365 Teams (Using Graph API)](https://xsoar.pan.dev/docs/reference/integrations/microsoft-graph-teams)     |
| Generic Webhook                   | Creates incidents on event triggers. The trigger can be any query posted to the integration.                                                                                                                                                                                                                                                                                                                                             | [Generic Webhook](https://xsoar.pan.dev/docs/reference/integrations/generic-webhook)                        |
| Generic Export Indicators Service | <p>Use the Generic Export Indicators Service integration to provide an endpoint with a list of indicators as a service for the system indicators. You can set up the tenant to export internal data to an endpoint.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>This integration replaces the External Dynamic list integration, which is deprecated.</p></div> | [Generic Export Indicators](https://xsoar.pan.dev/docs/reference/integrations/edl)                          |
| TAXII Server                      | Provides TAXII Services for system indicators (Outbound feed).                                                                                                                                                                                                                                                                                                                                                                           | [TAXII Server](https://xsoar.pan.dev/docs/reference/integrations/taxii-server)                              |
| TAXII2 Server                     | Provides TAXII2 Services for system indicators (outbound feed). You can choose to use TAXII v2.0 or TAXII v2.1.                                                                                                                                                                                                                                                                                                                          | [TAXII2 Server](https://xsoar.pan.dev/docs/reference/integrations/taxii2-server)                            |
| XSOAR-Web-Server                  | Supports handling configurable user responses (like Yes/No/Maybe) and data collection tasks that can be used to fetch key value pairs.                                                                                                                                                                                                                                                                                                   | [XSOAR-Web-Server](https://xsoar.pan.dev/docs/reference/integrations/xsoar-web-server)                      |
| PingCastle                        | Listens for PingCastle XML reports.                                                                                                                                                                                                                                                                                                                                                                                                      | [PingCastle](https://xsoar.pan.dev/docs/reference/integrations/ping-castle)                                 |
| Publish List                      | Publishes XSOAR lists for external consumption.                                                                                                                                                                                                                                                                                                                                                                                          | [Publish List](https://cortex.marketplace.pan.dev/marketplace/details/PublishList/)                         |
| Simple API Proxy                  | Provides a simple API proxy to restrict privileges or minimize the amount of credentials issued at the API.                                                                                                                                                                                                                                                                                                                              | [Simple API Proxy](https://cortex.marketplace.pan.dev/marketplace/details/SimpleAPIProxy/)                  |
| Syslog v2                         | <p>Opens incidents automatically from Syslog clients.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Syslog functionality is currently not supported.</p></div>                                                                                                                                                                                                    | [Syslog v2](https://xsoar.pan.dev/docs/reference/integrations/syslog-v2)                                    |
| Web File Repository               | Makes your environment ready for testing purpose for your playbooks or automations to download files from a web server.                                                                                                                                                                                                                                                                                                                  | [Web File Repository](https://xsoar.pan.dev/docs/reference/integrations/web-file-repository#context-output) |

{% hint style="info" %}

### Note

* When running on the tenant, you can only use long-running integrations provided by Cortex XSOAR, you cannot create custom ones. Custom long-running integrations are supported only on engines at this time.
* Configuring custom certificates or private API Keys in the long-running integration instance is supported only on engines, not on the Cortex XSOAR tenant.
  {% endhint %}

<details>

<summary>Define credentials for long-running integrations</summary>

When defining credentials for long-running integrations, you can do one of the following:

* Set up credentials for each separate integration (recommended)

  Users with sufficient permissions can set the username and password for specific integration instances, on the **Integrations** → **Instances** page.
* Set up universal credentials for all long-running integrations

  You need the Account Admin or Instance Administrator's permission to define credentials.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Tip</h3><p>For long-running integrations running on an engine, we strongly recommend defining a username and password, but it is not required.</p></div>

{% hint style="info" %}

### Important

If you define credentials in long-running integrations, but there is a different username and password in an individual integration instance, the credentials for the integration instance override the long-running integration credentials.
{% endhint %}

1. Go to **Settings & Info** → **Settings** → **Integrations** → **Long Running Integrations**.
2. In the **Configure Universal Credentials for Long Running Integrations (Optional)** section, add a username and password.
3. Save the configuration.

   When configuring a long-running integration, you don't need to add a username and password.

</details>

<details>

<summary>Define a listening port for long-running integrations</summary>

When configuring a long-running integration instance, you may need to define a listening port.

* **Integration instance running directly on a tenant**

  If the long-running integration runs on the Cortex XSOAR tenant, you do not need to enter a **Listen Port** in the instance settings. The system auto-selects an unused port for the long-running integration when the instance is saved.
* **Integration instance running on a custom engine**

  You must set the **Listen Port** for access when configuring a long-running integration instance on an engine. Use a unique port for each long-running integration instance. Do not use the same port for multiple instances.

</details>

<details>

<summary>Test the long-running integration connection</summary>

* **Integration instance running directly on a tenant**

  You can use CURL commands from any terminal to access and test the long-running integration at the URL:

  `https://ext-<cortex-xsoar-address>/xsoar/instance/execute/<instance-name>`

  For example, `curl -v -u user:pass https://ext-mytenant.paloaltonetworks.com/xsoar/instance/execute/edl_instance_01\?q\=type:ip`

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>The data URL must always be prefixed by ext-.</p></div>
* **Integration instance running on a custom engine**

  You can use CURL commands from any terminal to access and test the long-running integration at the engine URL:

  `http://<engine-address>:<integration listen port>/`

  For example, `curl -v -u user:pass http://<engine_address>:<listen_port>/?n=50`

**Curl request parameters for external dynamic lists**

The following list of curl request parameters applies when using the **Generic Export Indicators Service** integration for external dynamic lists.

| Argument | Description                                                                                                                                                             | Example                                                                                                                                |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **`n`**  | The maximum number of entries in the output. If no value is provided, will use the value specified in the **List Size** parameter in the integration instance settings. | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?n=50`**                                       |
| **`s`**  | The starting entry index from which to export the indicators.                                                                                                           | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?s=10&n=50`**                                  |
| **`v`**  | The output format. Supports PAN-OS (text), CSV, JSON, mwg and proxysg (alias: bluecoat).                                                                                | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=json`**                                     |
| **`q`**  | The query used to retrieve indicators from the system.                                                                                                                  | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?q="type:ip and sourceBrand:my_source"`**      |
| **`t`**  | Only with mwg format. The type indicated on the top of the exported list. Supports: string, applcontrol, dimension, category, ip, mediatype, number and regex.          | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=mwg&t=ip`**                                 |
| **`sp`** | If set, will strip ports off URLs, otherwise will ignore URLs with ports.                                                                                               | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=text&sp`**                                  |
| **`di`** | Only with PAN-OS (text) format. If set, will ignore URLs which are not compliant with PAN-OS URL format instead of being re-written.                                    | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=text&di`**                                  |
| **`cr`** | If set, will strip protocols off URLs.                                                                                                                                  | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=text&pr`**                                  |
| **`cd`** | Only with proxysg format. The default category for the exported indicators.                                                                                             | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=proxysg&cd=default_category`**              |
| **`ca`** | Only with proxysg format. The categories which will be exported. Indicators not in these categories will be classified as the default category.                         | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=proxysg&ca=category1,category2`**           |
| **`tr`** | <p>Only with PAN-OS (text) format. Whether to collapse IPs.</p><ul><li>0 - Do not collapse.</li><li>1 - Collapse to ranges.</li><li>2 - Collapse to CIDRs</li></ul>     | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?q="type:ip and sourceBrand:my_source"&tr=1`** |
| **`tx`** | Whether to output CSV formats as textual web pages.                                                                                                                     | **`https://ext-<cortex-xsoar_instance>/instance/execute/<ExportIndicators_instance_name>?v=csv&tx`**                                   |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.11/configure-cortex-xsoar/integrations/forward-requests-to-long-running-integrations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
