> 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-compute.md).

# Palo Alto Prisma Cloud Compute

Prisma Cloud Compute protects hosts, containers and serverless workloads. OctoXLabs reads host information, optionally per-host vulnerabilities and container images, and the console users.

## Use cases

* List hosts and images that Prisma Cloud Compute reports.

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

* Find hosts not scanned for 30 days.

```
Adapters = palo-alto-prisma-cloud-compute AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                  | Port                | Protocol                         |
| ------------------- | ---------------------------- | ------------------- | -------------------------------- |
| OctoXLabs connector | Prisma Cloud Compute Console | 8083 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role           | Permission | Needed for                            |
| ----------------------- | ---------- | ------------------------------------- |
| Account Group Read Only | Read       | Hosts, vulnerabilities, images, users |

## Create credentials in Palo Alto Prisma Cloud Compute

{% stepper %}
{% step %}

### Find the Console URL

SaaS: in **Compute**, go to **Manage > System > Downloads**. The **Path to Console** is your Console URL. Self-hosted: the API is exposed on port 8083 (HTTPS) by default on your own domain.
{% endstep %}

{% step %}

### Create a user

Create a Prisma Cloud Compute user for OctoXLabs with **Account Group Read Only** access.
{% endstep %}

{% step %}

### Note the API version

Find the API version of your Console. It is used as `/api/v<version>/` in request paths.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type    | Default | Description                                                                            |
| --------------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------- |
| IP Address            | Yes      | String  |         | Address of the Console.                                                                |
| Port                  | No       | Integer | 8083    | Port number.                                                                           |
| Username              | Yes      | String  |         | Account with Account Group Read Only access.                                           |
| Password              | Yes      | String  |         | Password of the account.                                                               |
| Proxy                 | No       | String  |         | Proxy address. The connector sends traffic through it as `http://<proxy>`.             |
| Is Secure             | No       | Boolean | True    | Use HTTPS.                                                                             |
| Version               | Yes      | String  |         | API version of the Console, used as `/api/v<version>/`.                                |
| Thread Count          | No       | Integer | 32      | Parallel threads. Min 1, max 32.                                                       |
| Fetch Vulnerabilities | No       | Boolean | False   | Fetch vulnerability data per device.                                                   |
| Fetch Images          | No       | Boolean | False   | Fetch container images with their vulnerabilities as separate devices.                 |
| Image Thread Count    | No       | Integer | 8       | Parallel threads for image details. The API allows 30 requests per 30 seconds. Max 30. |
| Image Sleep Time      | No       | Integer | 15      | Seconds between image thread batches.                                                  |
| Timeout               | No       | Integer | 30      | Seconds to wait for API responses.                                                     |

## Troubleshooting

| Error message                                       | Cause                              | Fix                                                 |
| --------------------------------------------------- | ---------------------------------- | --------------------------------------------------- |
| Failed to fetch devices:                            | The hosts call did not return 200. | Check the version, credentials and permissions.     |
| Failed to fetch vulnerabilities:                    | The vulnerabilities call failed.   | Check the permissions and version.                  |
| Failed to fetch image names:                        | The image names call failed.       | Check the permissions and version.                  |
| Failed to fetch users:                              | The users call failed.             | Check the permissions and version.                  |
| Rate limited fetching image , attempt , waiting 30s | The API answered 429 for an image. | Lower Image Thread Count or raise Image Sleep Time. |

## Change history

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