> 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/launch-scan-on-matched-assets-on-tenable.md).

# Launch Scan on Matched Assets on Tenable

Launches an existing Tenable scan against the matched assets for this run only. The matched hostnames or IP addresses are sent as alternate targets, so the saved target list of the scan is not changed.

### 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`.
* An existing scan in Tenable. Use its scan id or `schedule_uuid` (Tenable recommends `schedule_uuid`).

### 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.      |
| Scan                | Text           | Yes      | None                        | The scan id or `schedule_uuid` from `GET /scans` in Tenable.                                              |
| Target Field        | Choice         | No       | Hostname                    | Asset column used as the scan target. Choices: `Hostname`, `IpAddresses`.                                 |
| Rollover            | Boolean        | No       | Off                         | Launch a rollover scan, which only runs against targets a previous scan timed out on.                     |

### How it works

* The job takes the **Target Field** values of the matched devices (cut to **Maximum Assets**), skips devices that have no value, and removes duplicate targets.
* It sends one request, `POST /scans/<scan>/launch`, with `alt_targets` set to the target list. `rollover` is sent only when **Rollover** is on.
* No target could be built: the job logs it and does not launch the scan.
* A failed request fails the job.
* To create a new scan instead of launching an existing one, see [Create Tenable Scan](broken://pages/4a11c3ed0768bfedb667576805e8012cc2801416).
* The job passes the matched assets it received on to the next node unchanged.

### Example

Launch a saved scan against the devices your condition found.

| Setting      | Value                       |
| ------------ | --------------------------- |
| Domain       | `https://cloud.tenable.com` |
| Access Key   | `YOUR_ACCESS_KEY`           |
| Secret Key   | `YOUR_SECRET_KEY`           |
| Scan         | `YOUR_SCAN_SCHEDULE_UUID`   |
| Target Field | `Hostname`                  |
| Rollover     | Off                         |

### 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>Create Exclusion on Tenable</strong></td><td>Create a Tenable scan exclusion covering the matched assets.</td><td><a href="broken://pages/1c66d13b8d6dae78e52f12d3a86051e4f216b115">Broken link</a></td></tr><tr><td><strong>Create Tenable Scan</strong></td><td>Create a scan from a template and launch it against the matched devices.</td><td><a href="broken://pages/4a11c3ed0768bfedb667576805e8012cc2801416">Broken link</a></td></tr></tbody></table>

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