> 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/action-center/tenable/import-assets-to-tenable.md).

# Import Assets to Tenable

Imports the matched assets into Tenable as a custom asset source. For each device the job builds an import record from its hostname, FQDN, IPv4 addresses, MAC addresses and operating system, and sends all records in one request.

### Before you begin

* An API key pair for Tenable Vulnerability Management: an **Access Key** and a **Secret Key**, generated in the Tenable console under Settings - My Account - API Keys. The default **Domain** is `https://cloud.tenable.com`.
* Connection defaults (Domain, Access Key, Secret Key, Timeout, Verify SSL) can be saved once under **Action Center** > **Settings**. See [Action Center Settings](broken://pages/742bb94503961e05b5eaa95572a142f73cd7ecb2).
* Asset type: device only. Required columns: `Hostname`, `IpAddresses`, `MacAddresses`, `OS.FullOsString`.

### Settings

The job node shows these fields.

| Setting             | Type           | Required | Default                     | Description                                                                                               |
| ------------------- | -------------- | -------- | --------------------------- | --------------------------------------------------------------------------------------------------------- |
| Domain              | URL            | No       | <https://cloud.tenable.com> | Base URL of Tenable. Example: `https://cloud.tenable.com`.                                                |
| Access Key          | Sensitive text | Yes      | None                        | Generated in the Tenable console under Settings - My Account - API Keys. Masked after saving.             |
| Secret Key          | Sensitive text | Yes      | None                        | The secret key of the same key pair. Masked after saving.                                                 |
| Timeout             | Number         | No       | 30                          | Request timeout in seconds.                                                                               |
| Verify SSL          | Boolean        | No       | On                          | Verify the TLS certificate of the Tenable host.                                                           |
| Retry on Rate Limit | Boolean        | No       | On                          | Retry a request once when Tenable answers 429, waiting for the `retry-after` header (at most 60 seconds). |
| Maximum Assets      | Number         | No       | 5000                        | Upper bound on how many assets a single request body may carry. Extra assets are logged and skipped.      |
| Source Name         | Text           | No       | OctoXLabs                   | Groups the imported records in Tenable. Example: `OctoXLabs`.                                             |

### How it works

* Each device becomes one record: `hostname` (all hostnames), `fqdn` (hostnames that contain a dot), `ipv4` (IPv4 addresses only), `mac_address` (at most 100) and `operating_system` (from `OS.FullOsString`).
* A device is skipped when its record has none of `fqdn`, `ipv4` or `mac_address`, because Tenable requires at least one of these (or a NetBIOS name, which this job does not send).
* The job takes at most **Maximum Assets** devices and sends one request, `POST /import/assets`, with the source name and all records. It logs the Tenable import job id.
* No importable asset: the job logs it and sends nothing.
* A failed request fails the job.
* The job passes the matched assets it received on to the next node unchanged.

### Example

Import devices into Tenable under the default source name.

| Setting     | Value                       |
| ----------- | --------------------------- |
| Domain      | `https://cloud.tenable.com` |
| Access Key  | `YOUR_ACCESS_KEY`           |
| Secret Key  | `YOUR_SECRET_KEY`           |
| Source Name | `OctoXLabs`                 |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/ed78ac5bacec4909acb71c776dd17d62cfa78748">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save connection defaults for Tenable jobs.</td><td><a href="broken://pages/742bb94503961e05b5eaa95572a142f73cd7ecb2">Broken link</a></td></tr><tr><td><strong>Overwrite ACR on Tenable</strong></td><td>Overwrite the Asset Criticality Rating of the matched assets.</td><td><a href="broken://pages/27037659e2cf5470d44b84f5f18f10d1f0cab614">Broken link</a></td></tr><tr><td><strong>Add Tag to Assets on Tenable</strong></td><td>Add a Tenable tag to the matched assets.</td><td><a href="broken://pages/863813ba5f9904fdaf7a2ccb524c39fa74d96a97">Broken link</a></td></tr></tbody></table>

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