> 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/a/aqua-cspm-cloud.md).

# Aqua CSPM Cloud

Aqua CSPM (formerly CloudSploit) checks cloud accounts for misconfigurations. OctoXLabs reads the users of the CSPM account.

## Use cases

* Find Aqua CSPM Cloud accounts that have no match in your directory.

```
Adapters = aqua-cspm-cloud AND NOT Adapters = active-directory
```

* Check what one Aqua CSPM Cloud connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                        | Port | Protocol |
| ------------------- | -------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.cloudsploit.com (default, configurable Domain) | 443  | HTTPS    |

### Required permissions

API access requires a paid plan and a valid API access key and secret. This is not your AWS access key.

## Create credentials in Aqua CSPM Cloud

{% stepper %}
{% step %}

### Open API Keys

Sign in to the Aqua CSPM dashboard and click **API Keys**.
{% endstep %}

{% step %}

### Generate a key

On the right, click **Generate API Key**.
{% endstep %}

{% step %}

### Record the values

Record the **access key** and the **secret** shown in the dialog. The secret is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default             | Description                                                           |
| ---------- | -------- | ------- | ------------------- | --------------------------------------------------------------------- |
| Domain     | Yes      | String  | api.cloudsploit.com | Domain of the Aqua CSPM API.                                          |
| Api Key    | Yes      | String  | None                | API access key from the dashboard.                                    |
| Secret Key | Yes      | String  | None                | Secret paired with the access key. Used to sign every request.        |
| Proxy      | No       | String  | None                | Proxy address. The connector sends requests through `http://<value>`. |
| Timeout    | No       | Integer | 30                  | Time in seconds to wait for API responses.                            |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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