> 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/palo-alto-panorama-management-server.md).

# Palo Alto Panorama Management Server

Panorama manages Palo Alto Networks firewalls centrally. OctoXLabs reads device groups and their managed firewalls, and collects the security and NAT pre and post rules of each device group as policies.

## Use cases

* List firewalls managed by Panorama.

```
Adapters = palo-alto-panorama
```

## Before you begin

### Network

| Source              | Destination                | Port               | Protocol                         |
| ------------------- | -------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | Panorama management server | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                                                                                  | Permission | Needed for                              |
| ---------------------------------------------------------------------------------------------- | ---------- | --------------------------------------- |
| Read-only access to Panorama REST API `Panorama/DeviceGroups`                                  | Read       | Device groups and managed firewalls     |
| Read access to `Policies/SecurityPreRules`, `SecurityPostRules`, `NATPreRules`, `NATPostRules` | Read       | Policies (Fetch Policies)               |
| **XML API** permission                                                                         | Read       | Firewall details (Fetch Device Details) |

## Create credentials in Palo Alto Panorama Management Server

{% stepper %}
{% step %}

### Create an admin

Create a Panorama administrator for OctoXLabs with read-only access.
{% endstep %}

{% step %}

### Grant REST API read access

Allow read access to `Panorama/DeviceGroups`. With Fetch Policies on, also allow `Policies/SecurityPreRules`, `Policies/SecurityPostRules`, `Policies/NATPreRules` and `Policies/NATPostRules`.
{% endstep %}

{% step %}

### Add XML API for device details

If you turn on **Fetch Device Details**, also grant the **XML API** permission.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter            | Required | Type    | Default | Description                                                                                                                                                                                         |
| -------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP                   | Yes      | String  |         | IP address of the Panorama server.                                                                                                                                                                  |
| Port                 | No       | Integer | 443     | Port number.                                                                                                                                                                                        |
| Username             | Yes      | String  |         | Panorama account.                                                                                                                                                                                   |
| Password             | Yes      | String  |         | Password of the account.                                                                                                                                                                            |
| Api Version          | No       | String  | v11.1   | Panorama REST API version used in request URLs. Match your Panorama software version.                                                                                                               |
| Fetch Device Details | No       | Boolean | False   | Read hostname, IP, MAC, model and software version of managed firewalls from the XML API. The primary key becomes the hostname. Off, assets are identified by serial number from the REST API only. |
| Fetch Policies       | No       | Boolean | True    | Collect security and NAT pre and post rules of each device group as policy assets.                                                                                                                  |
| Is Secure            | No       | Boolean | True    | Use HTTPS.                                                                                                                                                                                          |
| Timeout              | No       | Integer | 30      | Seconds to wait for API responses.                                                                                                                                                                  |

## Troubleshooting

| Error message                                                             | Cause                           | Fix                                           |
| ------------------------------------------------------------------------- | ------------------------------- | --------------------------------------------- |
| Failed to obtain XML API key from Panorama (keygen returned non-success). | The XML API key request failed. | Check credentials and the XML API permission. |
| Panorama XML API returned a non-success status while listing devices.     | The device list command failed. | Check the XML API permission.                 |

## Change history

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