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

# Druva GovCloud

Druva GovCloud is the isolated U.S. government environment of Druva, served from `govcloudapis.druva.com`. Its credentials are made on the federal console and do not work with the commercial cloud. OctoXLabs uses it to add the registered devices, and optionally users, to the inventory.

## Use cases

* List devices protected by Druva GovCloud.

```
Adapters = druva-govcloud
```

## Before you begin

### Network

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

### Required permissions

| Scope or role                                                        | Permission          | Needed for        |
| -------------------------------------------------------------------- | ------------------- | ----------------- |
| Druva GovCloud API credential created by a Druva Cloud Administrator | Read (scope `read`) | Devices and users |

Reference: [Create and Manage API Credentials](https://help.druva.com/en/articles/8580838-create-and-manage-api-credentials). Keep at least one of the two operations on.

## Create credentials in Druva

{% stepper %}
{% step %}

### Sign in

Sign in to the GovCloud console at [loginfederal.druva.com](https://loginfederal.druva.com/login) as a **Druva Cloud Administrator**.
{% endstep %}

{% step %}

### Open API Credentials

Open **Integration Center** and select **API Credentials**.
{% endstep %}

{% step %}

### Create credentials

Click **New Credentials**, enter a name, add restrictions if needed and click **Save**.
{% endstep %}

{% step %}

### Copy the values

Copy the Client ID and Secret Key. 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 API credential. |
| Secret Key              | Yes      | String            | None    | Private half of the credential.    |
| Fetch Devices Operation | No       | Boolean           | `True`  | Collect devices.                   |
| Fetch Users Operation   | No       | Boolean           | `False` | Collect users.                     |
| 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.7.2.
{% endhint %}
