> 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-prisma-cloud-cspm.md).

# Palo Alto Prisma Cloud CSPM

Prisma Cloud is Palo Alto Networks' cloud security platform. This adapter reads the console users that have an email address. Policies and cloud resources are collected by a separate Prisma Cloud adapter.

## Use cases

* List Prisma Cloud console users that OctoXLabs has collected.

```
Adapters = palo-alto-prisma-cloud-cspm
```

## Before you begin

### Network

| Source              | Destination                                                               | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Prisma Cloud API host of your tenant, for example `api.eu.prismacloud.io` | 443  | HTTPS    |

### Required permissions

| Scope or role     | Permission         | Needed for                                                                    |
| ----------------- | ------------------ | ----------------------------------------------------------------------------- |
| System Admin role | List console users | Users. With any other role the connection test fails with a permission error. |

## Create credentials in Palo Alto Prisma Cloud CSPM

{% stepper %}
{% step %}

### Sign in as System Admin

Log in to the Prisma Cloud console with the **System Admin** role. The key gets the permissions of the role you are logged in with.
{% endstep %}

{% step %}

### Add an access key

Go to **Settings > Access Control > Access Keys**, then **Add > Access Key**.
{% endstep %}

{% step %}

### Copy the keys

Copy the Access Key ID and the Secret Key. The secret cannot be viewed after the window is closed.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                                                          |
| ------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
| Domain        | Yes      | String  |         | Prisma Cloud API host of your tenant, without `https://`. It matches your console URL, with `app` replaced by `api`. |
| Access Key ID | Yes      | String  |         | Access key ID.                                                                                                       |
| Secret Key    | Yes      | String  |         | Secret key of the access key.                                                                                        |
| Proxy         | No       | String  |         | Proxy address as `host:port`.                                                                                        |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                                                                                   |

## Troubleshooting

| Error message                             | Cause                              | Fix                                                                |
| ----------------------------------------- | ---------------------------------- | ------------------------------------------------------------------ |
| Prisma Cloud login response has no token: | The login call returned no token.  | Check Access Key ID, Secret Key and Domain.                        |
| Max retries exceeded for :                | The API kept answering 401 or 429. | Check the key and the System Admin role, and wait before retrying. |

## Change history

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