> 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/t/trend-micro-cloud-one-workload-security.md).

# Trend Micro Cloud One Workload Security

Trend Micro Cloud One Workload Security is a workload protection platform for physical, virtual and cloud servers. OctoXLabs reads the protected computers and the administrators of your account and adds them to the inventory. The adapter slug is `trendmicro-cloud-one-ws`.

## Use cases

* **Find servers without a Workload Security agent.** Replace the adapter slug with a source that has a full server list.

```
Adapters = active-directory AND NOT Adapters = trendmicro-cloud-one-ws
```

* **Review Workload Security administrators.** Find administrators that have no directory account. How accounts are matched depends on your user merge settings.

```
Adapters = trendmicro-cloud-one-ws AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                 | Port | Protocol |
| ------------------- | ------------------------------------------- | ---- | -------- |
| OctoXLabs connector | workload.`<region>`.cloudone.trendmicro.com | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, requests go through it. If you restricted the API key to IP or CIDR ranges, add the OctoXLabs connector address to them.

### Required permissions

| Scope or role | Permission                                 | Needed for |
| ------------- | ------------------------------------------ | ---------- |
| API key role  | Read access to Workload Security computers | Devices    |
| API key role  | Read access to administrators              | Users      |

The baseline says the **Role** field of the key sets its access scope but does not name a role. Not verified.

## Create credentials in Trend Micro Cloud One

{% stepper %}
{% step %}

### Select the account

In the upper right of the Trend Cloud One console, select the account and click the account name.
{% endstep %}

{% step %}

### Open API Keys

Select **Administration**, then click the key icon on the left to display **API Keys**.
{% endstep %}

{% step %}

### Create the key

Click **New**. Set an **API Key Alias**, a **Description**, the **Role**, the **Language** and the **Timezone**. Optionally, add IP or CIDR ranges. If you do, only requests from those ranges are allowed.
{% endstep %}

{% step %}

### Copy the key

Click **Next**, copy the displayed key and save it. If you lose it, you must create a new key. Click **Close**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter   | Required | Type    | Default | Description                                                                                                             |
| ----------- | -------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| Region      | Yes      | String  | None    | Region code of your instance: `us-1`, `in-1`, `gb-1`, `jp-1`, `de-1`, `au-1`, `ca-1` or `sg-1`. It forms the host name. |
| Api key     | Yes      | String  | None    | Cloud One API key. Sent as `Authorization: ApiKey <key>`.                                                               |
| Api version | No       | String  | v1      | API version, sent in the `api-version` header. Advanced.                                                                |
| Per page    | No       | Integer | 5000    | Items per page. Advanced.                                                                                               |
| Timeout     | No       | Integer | 30      | Seconds to wait for an API response. Advanced.                                                                          |
| Proxy       | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS. Advanced.                                                   |

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                          |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| Missing -> api key or api version.                             | The API key or API version is empty.                                                 | Fill in both fields.                                         |
| Request to {url} failed after 5 attempts.                      | The API kept answering 429.                                                          | Run discovery again later.                                   |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Check the key, its role, the region and the IP restrictions. |

## Change history

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