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

# Backblaze

Backblaze B2 is a cloud storage service. OctoXLabs reads the groups of the account and the members of each group and adds them as users.

## Use cases

* Find Backblaze accounts that have no match in your directory.

```
Adapters = backblaze AND NOT Adapters = active-directory
```

* Check what one Backblaze connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                                                                 | Port | Protocol |
| ------------------- | ----------------------------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.backblazeb2.com (default, configurable Domain), then the groups API URL that Backblaze returns at login | 443  | HTTPS    |

### Required permissions

The key must be allowed to list groups and group members. The source gives the master application key flow only. Not verified for restricted keys.

## Create credentials in Backblaze

{% stepper %}
{% step %}

### Sign in

Sign in to the Backblaze web console.
{% endstep %}

{% step %}

### Open Application Keys

In the left navigation under **B2 Cloud Storage**, click **Application Keys**.
{% endstep %}

{% step %}

### Generate the master key

In the **Master Application Key** section, click **Generate New Master Application Key**, then click **Yes! Generate Master Key**.
{% endstep %}

{% step %}

### Save the values

The master key is shown only once. The master application key ID is on the Application Keys page. It was formerly called the account ID. For a standard application key you can use that key's keyID.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                 | Required | Type   | Default             | Description                                                           |
| ------------------------- | -------- | ------ | ------------------- | --------------------------------------------------------------------- |
| Domain                    | No       | String | api.backblazeb2.com | Domain of the Backblaze API.                                          |
| Master Application Key ID | Yes      | String | None                | Key ID of the application key. Stored as `key_id`.                    |
| Master Application Key    | Yes      | String | None                | The application key. Stored as `key`.                                 |
| HTTPS Proxy               | No       | String | None                | Proxy address. The connector sends requests through `http://<value>`. |

## 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.1.0.
{% endhint %}
