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

# Bit Defender

Bitdefender GravityZone is an endpoint security platform. OctoXLabs reads the managed computers and virtual machines from the GravityZone network inventory as devices.

## Use cases

* List managed endpoints with their MAC addresses.

```
Adapters = bit-defender AND MacAddresses = *
```

* List Windows endpoints that GravityZone protects.

```
Adapters = bit-defender AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                          | Port                            | Protocol |
| ------------------- | ------------------------------------ | ------------------------------- | -------- |
| OctoXLabs connector | GravityZone instance (URL you enter) | 443 (HTTPS, depends on the URL) | HTTPS    |

### Required permissions

The source does not list specific permissions. Use an account that can read the data listed under Fields fetched.

## Create credentials in Bit Defender

{% stepper %}
{% step %}

### Generate an API key

In the Bit Defender GravityZone console, generate an API key. When you use an API key, leave Username and Password empty.
{% endstep %}

{% step %}

### Or use a username and password

If you have no API key, enter the username and password saved in the Bit Defender settings.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                            |
| --------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------- |
| URL       | Yes      | String  |         | URL of the Bit Defender instance. The path `/v1.0/jsonrpc/network` is appended.        |
| API Key   | No       | String  |         | API key from the GravityZone console. Required unless Username and Password are given. |
| Username  | No       | String  |         | Required only if no API key is given.                                                  |
| Password  | No       | String  |         | Required only if no API key is given.                                                  |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.                                                     |

## Troubleshooting

| Error message                                                  | Cause                                                                                                                                  | Fix                                                                                                  |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Either api\_key or both username and password must be provided | The connection has neither an API key nor a full username and password.                                                                | Fill in the API key, or both username and password.                                                  |
| Connection test failed. Response:                              | The API answered with an error.                                                                                                        | Check the URL and the credentials.                                                                   |
| Status Code: `, URL, Method`                                   | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history
