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

# RayVentory

RayVentory is an inventory platform that stores scan results in result database tables. OctoXLabs reads one table through the RayVentory API and maps its columns to devices.

## Use cases

* List devices that RayVentory knows but no EDR covers.

```
Adapters = rayventory AND NOT Adapters = falcon-crowdstrike
```

* Find devices not seen recently by RayVentory.

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

## Before you begin

### Network

| Source              | Destination                    | Port                        | Protocol                     |
| ------------------- | ------------------------------ | --------------------------- | ---------------------------- |
| OctoXLabs connector | RayVentory host (IP you enter) | 443 (default, configurable) | HTTPS (HTTP when SSL is off) |

### Required permissions

| Scope or role | Permission | Needed for                                                      |
| ------------- | ---------- | --------------------------------------------------------------- |
| API key       | Read       | Result database table (`/v1/resultDatabase/{table_name}/paged`) |

## Create credentials in RayVentory

The source instructions do not describe how to create the API key in RayVentory. Use a key with read access to the result database table. Not verified: where the key is created.

## Connection parameters

| Parameter        | Required | Type    | Default | Description                                                                                    |
| ---------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------- |
| IP               | Yes      | String  | None    | IP address of the RayVentory host.                                                             |
| Port             | No       | Integer | 443     | Port of the RayVentory API.                                                                    |
| API Key          | Yes      | String  | None    | RayVentory API key with read access. Sent in the `ApiKey` header.                              |
| Table Name       | Yes      | String  | None    | Name of the result database table to read.                                                     |
| Hostname Field   | Yes      | String  | None    | Column that holds the device host name. No spaces.                                             |
| IP Address Field | No       | String  | None    | Column that holds the IP address. No spaces.                                                   |
| First Seen Field | No       | String  | None    | Column that holds the first seen date. No spaces. Not needed if the column is named FirstSeen. |
| Last Seen Field  | No       | String  | None    | Column that holds the last seen date. No spaces. Not needed if the column is named LastSeen.   |
| SSL              | No       | Boolean | True    | Use HTTPS.                                                                                     |
| Timeout          | No       | Integer | 30      | Seconds to wait for API responses.                                                             |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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