> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/p/paloalto-xpanse.md).

# PaloAlto Xpanse

Cortex Xpanse maps the internet-facing attack surface of an organization. OctoXLabs reads the assets that Xpanse reports as exposed to the internet and the Xpanse users.

## Use cases

* List internet-exposed assets that Xpanse reports.

```
Adapters = paloalto-xpanse
```

## Before you begin

### Network

| Source              | Destination                 | Port | Protocol |
| ------------------- | --------------------------- | ---- | -------- |
| OctoXLabs connector | `api-<fqdn>` of your tenant | 443  | HTTPS    |

### Required permissions

| Scope or role                            | Permission | Needed for       |
| ---------------------------------------- | ---------- | ---------------- |
| API key role with Public API permissions | Read       | Assets and users |

## Create credentials in PaloAlto Xpanse

{% stepper %}
{% step %}

### Open API keys

In Cortex Xpanse go to **Settings > Configurations > Integrations > API Keys**.
{% endstep %}

{% step %}

### Create a key

Click **+ New Key**, choose **Standard** or **Advanced**, set access roles and make sure Public API permissions are included, then click **Generate**.
{% endstep %}

{% step %}

### Copy the key

Copy the generated value at once. It is sent as the `Authorization` header.
{% endstep %}

{% step %}

### Note the key ID

In the API Keys table, note the **ID** of the key. It is sent as `x-xdr-auth-id`.
{% endstep %}

{% step %}

### Find the FQDN

Right-click the key and select **View Examples**. The `api-{fqdn}` part of the cURL URL is your tenant FQDN.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type   | Default | Description                                                   |
| ---------- | -------- | ------ | ------- | ------------------------------------------------------------- |
| FQDN       | Yes      | String |         | Tenant FQDN without the `api-` prefix. The connector adds it. |
| API Key    | Yes      | String |         | API key (`Authorization` header).                             |
| API Key ID | Yes      | String |         | Key ID (`x-xdr-auth-id`).                                     |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 6.0.0.
{% endhint %}
