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

# CrashPlan

CrashPlan is a cloud endpoint backup service. OctoXLabs uses its API to add active computers that run the CrashPlan agent, and active users with their admin status, to the inventory.

## Use cases

* List computers that run the CrashPlan agent.

```
Adapters = crashplan
```

* Find CrashPlan computers not seen in the last 30 days.

```
Adapters = crashplan AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                              | Port | Protocol |
| ------------------- | -------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | CrashPlan console, for example console.us1.crashplan.com | 443  | HTTPS    |

### Required permissions

| Scope or role                                                            | Permission            | Needed for          |
| ------------------------------------------------------------------------ | --------------------- | ------------------- |
| Customer Cloud Admin role (to create an API client)                      | Create the API client | Setup               |
| API client permissions or account role that can read computers and users | Read                  | Computers and users |

## Create credentials in CrashPlan

{% stepper %}
{% step %}

### Open API clients

Sign in to the CrashPlan console and go to **Administration > Integrations > API Clients**.
{% endstep %}

{% step %}

### Create the client

Click **Create new API client**. Creating API clients requires the **Customer Cloud Admin** role.
{% endstep %}

{% step %}

### Copy the credentials

Copy the Client ID and Client Secret.

{% hint style="warning" %}
The secret is shown only once, when the client is created or its secret is reset.
{% endhint %}
{% endstep %}

{% step %}

### Or use an account (alternative)

Use a CrashPlan account that uses local authentication. SSO accounts cannot use the API. Accounts that require a one-time code at sign in are not supported. This is less secure than an API client.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter            | Required         | Type           | Default     | Description                                                                                                                                                                                        |
| -------------------- | ---------------- | -------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain               | Yes              | Text           |             | Address of your CrashPlan cloud instance, without `https://`. Examples: `console.us1.crashplan.com`, `console.us2.crashplan.com`, `console.eu5.cpg.crashplan.com`.                                 |
| Auth Type            | No               | Choice         | api\_client | `api_client` or `credentials`.                                                                                                                                                                     |
| Client ID            | When api\_client | Text           |             | Client ID of the API client.                                                                                                                                                                       |
| Client Secret        | When api\_client | Password       |             | Client secret of the API client.                                                                                                                                                                   |
| Username             | When credentials | Text           |             | Account with local authentication.                                                                                                                                                                 |
| Password             | When credentials | Password       |             | Password of the account.                                                                                                                                                                           |
| Fetch Devices        | No               | Boolean        | True        | Collect active computers.                                                                                                                                                                          |
| Fetch Users          | No               | Boolean        | True        | Collect active users. Users without an email are skipped.                                                                                                                                          |
| Fetch All Attributes | No               | Boolean        | False       | Request all optional details (backup destinations and statistics, live activity, upgrade availability, migration status, roles, authentication type). Can return a lot of data and slow discovery. |
| Page Size            | No               | Number (min 1) | 250         | Records per page.                                                                                                                                                                                  |
| Proxy                | No               | Text           |             | Proxy in `host:port` format.                                                                                                                                                                       |
| Timeout              | No               | Number         | 30          | Seconds to wait for API responses.                                                                                                                                                                 |

## Troubleshooting

| Error message                                                                 | Cause                                          | Fix                                      |
| ----------------------------------------------------------------------------- | ---------------------------------------------- | ---------------------------------------- |
| 'username' and 'password' are required for the credentials auth type.         | Auth Type is credentials and a field is empty. | Fill in both fields.                     |
| 'client\_id' and 'client\_secret' are required for the api\_client auth type. | Auth Type is api\_client and a field is empty. | Fill in both fields.                     |
| CrashPlan token response has no token.                                        | The token request returned no token.           | Check the credentials and the auth type. |
| Max retries exceeded. Status Code: ...                                        | The request failed after 3 attempts.           | Check the credentials and permissions.   |

## Change history

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