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

# Denodo Domain

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

## Use cases

* **List DNS records held in Denodo.** Show the domain records collected by this adapter in the domain inventory.

```
Adapters = denodo-domain
```

## 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.                                   |
| Name field    | Yes      | String             | None    | Column with the record name.                                                                          |
| Content field | Yes      | String             | None    | Column with the record value, for example an IP address for an A record.                              |
| Type field    | No       | String             | None    | Column with the record type, for example A, CNAME or MX.                                              |
| Domain field  | No       | String             | None    | Column with the zone the record belongs to.                                                           |
| 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.                                                                       |

A DNS record has no natural identifier. The key is an MD5 hash of type, domain, name and content joined with `-`, so records identical in all mapped columns become one asset. Map Type field and Domain field when the view has them.

## 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
