> 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/denodo-device.md).

# Denodo Device

Denodo is a data virtualization platform. This adapter reads one published Virtual DataPort view through the Denodo RESTful Web Service and builds devices from its columns. You tell OctoXLabs which column holds which value.

## Use cases

* **List devices that come from a Denodo view.** Show every device collected by this adapter.

```
Adapters = denodo-device
```

## Before you begin

### Network

| Source              | Destination                                            | Port                         | Protocol                           |
| ------------------- | ------------------------------------------------------ | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | Denodo server (Ip parameter), path `/denodo-restfulws` | 9090 (default, configurable) | HTTPS (HTTP when Is secure is off) |

Denodo publishes its web applications on port 9090 unless the port was changed in Denodo Control Center under **Configure** > **Web Container Configuration**, or in the VDP Administration Tool under **Administration** > **Server Configuration** > **Server connectivity** (**Web Container HTTP Port Number**).

### Required permissions

| Scope or role                        | Permission | Needed for        |
| ------------------------------------ | ---------- | ----------------- |
| Virtual database that holds the view | Connect    | Reaching the view |
| The view                             | Select     | Reading rows      |

The RESTful Web Service must be enabled on the server. If it is disabled, no Denodo adapter can connect.

## Create credentials in Denodo

{% stepper %}
{% step %}

### Find the view

Open the view in the Denodo Design Studio or the VDP Administration Tool. Note its database, its name and its column names.
{% endstep %}

{% step %}

### Prepare a Virtual DataPort user

The RESTful Web Service uses HTTP Basic with Virtual DataPort credentials, so there is no separate API key. Use a user with Connect on the database and Select on the view.
{% endstep %}

{% step %}

### Check the values

Open `http(s)://<ip>:<port>/denodo-restfulws/<database name>/views/<view name>?$start_index=0&$count=1` in a browser and sign in with the same user. A JSON document with an `elements` array means the connection values are correct.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Column names are case sensitive and must be written exactly as the view exposes them. For a field inside a compound column use dotted notation, for example `contact.email`.
{% endhint %}

## Connection parameters

| Parameter        | Required | Type               | Default | Description                                                                                                                                                      |
| ---------------- | -------- | ------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ip               | Yes      | String             | None    | Host name or IP address of the Denodo server that runs the web container.                                                                                        |
| Port             | No       | Integer            | 9090    | Web container port. If HTTPS is enabled on the container, enter its HTTPS port and keep Is secure on.                                                            |
| Username         | Yes      | String             | None    | Virtual DataPort user.                                                                                                                                           |
| Password         | Yes      | String (sensitive) | None    | Password of the user.                                                                                                                                            |
| Database name    | Yes      | String             | None    | Virtual database that contains the view.                                                                                                                         |
| View name        | Yes      | String             | None    | View to read. It must be reachable through the RESTful Web Service.                                                                                              |
| Primary field    | Yes      | String             | None    | Column that identifies the device. Its content must match the Aggregation type: a host name, an IP address or a MAC address. Rows where it is empty are skipped. |
| Aggregation type | No       | Choice             | hn      | How the primary field is read: `hn` (hostname), `ip` or `mac`. With `mac` the value is formatted as a MAC address. With `ip` it is validated as an IP address.   |
| Is secure        | No       | Boolean            | true    | Use HTTPS. Turn it off only when the web container serves plain HTTP.                                                                                            |
| Per page         | No       | Integer            | 100     | Rows requested per call, sent as `$count`. Lower it for very wide rows.                                                                                          |
| Proxy            | No       | String             | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                                                                                      |
| Timeout          | No       | Integer            | 30      | Seconds to wait for a response.                                                                                                                                  |

## Troubleshooting

| Error message                                                  | Cause                                                                                    | Fix                                                             |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The REST service answered with an error status. This is the shared REST connector error. | Check the credentials, privileges, database name and view name. |

## Change history
