> 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/c/contabo.md).

# Contabo

Contabo is a hosting and cloud provider. OctoXLabs uses its API to add compute instances and account users to the inventory.

## Use cases

* List the compute instances in the Contabo account.

```
Adapters = contabo
```

* Find instances that have no endpoint agent.

```
Adapters = contabo AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                           | Port | Protocol |
| ------------------- | ------------------------------------- | ---- | -------- |
| OctoXLabs connector | auth.contabo.com                      | 443  | HTTPS    |
| OctoXLabs connector | Contabo API (default api.contabo.com) | 443  | HTTPS    |

### Required permissions

| Scope or role           | Permission | Needed for                  |
| ----------------------- | ---------- | --------------------------- |
| API user of the account | Read       | Compute instances and users |

## Create credentials in Contabo

{% stepper %}
{% step %}

### Open the control panel

Log in to the Customer Control Panel at `https://my.contabo.com/account/login`.
{% endstep %}

{% step %}

### Find the client credentials

Go to the **API** section in the left menu. Your Client ID and Client Secret are shown there.
{% endstep %}

{% step %}

### Set the API password

In the **API** section click **Send Link**. Contabo emails a link where you set or reset the API password. Use this password in the connection.
{% endstep %}

{% step %}

### Note the username

The username is the email address of your Contabo account.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default         | Description                         |
| ------------- | -------- | -------- | --------------- | ----------------------------------- |
| Domain        | Yes      | Text     | api.contabo.com | Contabo API host.                   |
| Client ID     | Yes      | Text     |                 | Client ID from the API section.     |
| Client Secret | Yes      | Password |                 | Client secret from the API section. |
| Username      | Yes      | Text     |                 | Contabo account email address.      |
| Password      | Yes      | Password |                 | The separate API password.          |
| Proxy         | No       | Text     |                 | Proxy URL.                          |
| Is Secure     | No       | Boolean  | True            | Use HTTPS.                          |
| Timeout       | No       | Number   | 30              | Seconds to wait for API responses.  |

## Troubleshooting

| Error message                                | Cause                                       | Fix                                    |
| -------------------------------------------- | ------------------------------------------- | -------------------------------------- |
| Request failed after ... retries for url ... | The request kept returning 401, 403 or 429. | Check the credentials and rate limits. |
| Failed to fetch users: ...                   | A data request did not return 200.          | Check the API user and password.       |

## Change history

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