> 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/d/druva-msp.md).

# Druva MSP

Druva MSP is the multi-tenant Managed Services Center (MSC) that service providers use to run several customer tenants. Its credentials are created on the MSC portal. OctoXLabs uses it to add the MSP administrators to the inventory. It does not collect devices.

## Use cases

* Review the MSP administrators and when they last logged in.

## Before you begin

### Network

| Source              | Destination      | Port | Protocol |
| ------------------- | ---------------- | ---- | -------- |
| OctoXLabs connector | `apis.druva.com` | 443  | HTTPS    |

### Required permissions

| Scope or role                                      | Permission | Needed for         |
| -------------------------------------------------- | ---------- | ------------------ |
| MSP API credential created by an MSP administrator | Read       | Administrator list |

Only MSP administrators can create and manage API credentials. Reference: [Integration with Druva MSP APIs](https://help.druva.com/en/articles/8805729-integration-with-druva-msp-apis).

## Create credentials in Druva

{% stepper %}
{% step %}

### Sign in

Sign in to the Managed Services Center portal at [msplogin.druva.com](https://msplogin.druva.com/auth/login/) as an **MSP administrator**.
{% endstep %}

{% step %}

### Open API Credentials

Click the **Settings** icon on the main menu, then **API Credentials**.
{% endstep %}

{% step %}

### Create credentials

Click **New Credentials** and enter a name. Matching the name of the integrated application is recommended. Click **Save**.
{% endstep %}

{% step %}

### Copy the values

Copy the Client ID and Secret Key from the Credential Details window. The Secret Key is shown only once. To replace it, open the credential, go to **More options** and select **Generate New Secret Key**. A new key revokes every active token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type              | Default | Description                            |
| ---------- | -------- | ----------------- | ------- | -------------------------------------- |
| Client ID  | Yes      | String            | None    | Public half of the MSP API credential. |
| Secret Key | Yes      | String            | None    | Private half of the credential.        |
| Proxy      | No       | String            | None    | Proxy, used as `http://<proxy>`.       |
| Timeout    | No       | Integer (seconds) | `30`    | Time to wait for API responses.        |

## Troubleshooting

| Error message | Cause                                                             | Fix                                                   |
| ------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
| Not verified  | The connector code defines no custom error text for this adapter. | Check the credentials and network access to the host. |

## Change history

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