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

# Aqua Cloud

aqua is a test management platform, available as SaaS or on premises. OctoXLabs reads its users. The aqua REST API supports only the OAuth 2 password grant, so the connector signs in with a real aqua account.

## Use cases

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

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

* Check what one Aqua Cloud connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                         | Port | Protocol |
| ------------------- | --------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | app.aqua-cloud.io (default) or your own aqua server | 443  | HTTPS    |

### Required permissions

| Scope or role                    | Permission | Needed for            |
| -------------------------------- | ---------- | --------------------- |
| View all users (role permission) | Read       | Users                 |
| Assigned license                 | Required   | Signing in to the API |

The permissions and the license of the account decide what the API allows. While an API token of the account is valid, aqua counts the account as active and it takes a floating license. An account with a named license does not take a floating seat.

## Create credentials in Aqua Cloud

{% stepper %}
{% step %}

### Open user administration

Open the hamburger menu in the top-left corner and select **User administration** under **Server Configuration**.
{% endstep %}

{% step %}

### Add the user

Click **Add User**. Fill in First name, Last name, Username and Email, then click **Create user**.
{% endstep %}

{% step %}

### Assign a license

Click **Add license** and assign a license. Users without a license cannot access aqua.
{% endstep %}

{% step %}

### Grant the role

Give the account a role that includes the **View all users** permission.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default                               | Description                                                                                                                                           |
| --------- | -------- | ------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Url       | No       | String  | <https://app.aqua-cloud.io/aquaWebNG> | Address of the aqua web application with its virtual directory. On premises use `http(s)://<server>/aquaWebNG` (or `/aquaWeb` on some installations). |
| Username  | Yes      | String  | None                                  | Username of the aqua account.                                                                                                                         |
| Password  | Yes      | String  | None                                  | Password of that account.                                                                                                                             |
| 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                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Missing or invalid authentication token.                               | The token request returned no `access_token`.                          | Check the username, password and the license of the account.                                                                                  |
| 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.9.0.
{% endhint %}
