> 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-networks-strata-cloud-manager.md).

# Palo Alto Networks Strata Cloud Manager

Strata Cloud Manager manages Palo Alto Networks firewalls and Prisma Access from the cloud. OctoXLabs reads firewalls, security rules, certificates, TLS endpoints and, through Identity & Access, users and their roles.

## Use cases

* List firewalls managed by Strata Cloud Manager.

```
Adapters = palo-alto-strata-cloud-manager
```

* Find firewalls that have not connected for 7 days.

```
Adapters = palo-alto-strata-cloud-manager AND NOT LastSeen last now-7d/d
```

## Before you begin

### Network

| Source              | Destination                                                                       | Port | Protocol |
| ------------------- | --------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | `auth.apps.paloaltonetworks.com` (tokens)                                         | 443  | HTTPS    |
| OctoXLabs connector | `api.strata.paloaltonetworks.com` (firewalls, rules, certificates, TLS endpoints) | 443  | HTTPS    |
| OctoXLabs connector | `api.sase.paloaltonetworks.com` (Identity & Access users)                         | 443  | HTTPS    |

### Required permissions

| Scope or role                         | Permission                        | Needed for                                                     |
| ------------------------------------- | --------------------------------- | -------------------------------------------------------------- |
| Read access to firewall configuration | Read                              | Devices, security rules, configured certificates               |
| Read access to Identity & Access      | Read                              | Users and roles                                                |
| Read access to TLS Protect            | Read; needs a TLS Protect license | Certificate source `tls_protect` or `both`, and Fetch Services |

## Create credentials in Palo Alto Networks Strata Cloud Manager

{% stepper %}
{% step %}

### Open Identity & Access

In the tenant service group of your Strata Cloud Manager tenant, open **Identity & Access**.
{% endstep %}

{% step %}

### Add a service account

Add a service account. Its client ID has the form `name@<TSG ID>.iam.panserviceaccount.com`.
{% endstep %}

{% step %}

### Grant read access

Give it read access to the firewall configuration, to Identity & Access and, if you use TLS Protect, to TLS Protect.
{% endstep %}

{% step %}

### Copy the credentials

Copy the client ID and client secret. The secret is shown only when the account is created.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter          | Required | Type    | Default                         | Description                                                                                                                                                                     |
| ------------------ | -------- | ------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain             | No       | String  | api.strata.paloaltonetworks.com | Strata Cloud Manager API host, without `https://`.                                                                                                                              |
| SASE Domain        | No       | String  | api.sase.paloaltonetworks.com   | Prisma SASE API host that serves Identity & Access.                                                                                                                             |
| Auth Domain        | No       | String  | auth.apps.paloaltonetworks.com  | Host that issues the access token. One token serves both API hosts.                                                                                                             |
| Client ID          | Yes      | String  |                                 | Client ID of the service account.                                                                                                                                               |
| Client Secret      | Yes      | String  |                                 | Client secret of the service account.                                                                                                                                           |
| TSG ID             | Yes      | String  |                                 | Tenant service group ID. The token covers this group and its child tenants.                                                                                                     |
| Fetch Users        | No       | Boolean | True                            | Also collect users and service accounts with access to the tenant. Firewalls are always collected.                                                                              |
| Fetch Certificates | No       | Boolean | True                            | Also collect certificates.                                                                                                                                                      |
| Certificate Source | No       | Choice  | config                          | `config` reads certificates configured on the firewalls. `tls_protect` reads certificates found by TLS Protect (license needed). `both` reads the two as separate certificates. |
| Fetch Services     | No       | Boolean | False                           | Also collect TLS endpoints (host and port) where TLS Protect found each certificate. Needs a TLS Protect license.                                                               |
| Fetch Policies     | No       | Boolean | True                            | Also collect security rules, pre-rules and post-rules, from every folder.                                                                                                       |
| Page Size          | No       | Integer | 200                             | Records per page. 1 to 1000.                                                                                                                                                    |
| Proxy              | No       | String  |                                 | Proxy address as `host:port`.                                                                                                                                                   |
| Timeout            | No       | Integer | 30                              | Seconds to wait for API responses.                                                                                                                                              |

## Troubleshooting

| Error message                                             | Cause                             | Fix                                        |
| --------------------------------------------------------- | --------------------------------- | ------------------------------------------ |
| Strata Cloud Manager token response has no access\_token. | The token call returned no token. | Check Client ID, Client Secret and TSG ID. |
| Max retries exceeded for :                                | The API kept answering 401.       | Check the service account and its access.  |

## Change history

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