> 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/i/ibm-turbonomic.md).

# IBM Turbonomic

IBM Turbonomic optimizes application resources. OctoXLabs reads the virtual machines that Turbonomic knows from all its targets, and the on-premises hypervisor hosts. Turbonomic discovers them through targets such as vCenter, AWS and Azure, so the same machines can also come from those platforms' own adapters.

## Use cases

* List virtual machines known to Turbonomic by operating system.

```
Adapters = ibm-turbonomic AND OS.Type = Windows
```

* Find Turbonomic hosts that are physical servers.

```
Adapters = ibm-turbonomic AND Category = Server
```

## Before you begin

### Network

| Source              | Destination                                                                                        | Port          | Protocol |
| ------------------- | -------------------------------------------------------------------------------------------------- | ------------- | -------- |
| OctoXLabs connector | Turbonomic instance (for SaaS, its host name, for example `example.turbonomic.ibmappdomain.cloud`) | 443 (default) | HTTPS    |

### Required permissions

| Scope or role                                                                                    | Permission | Needed for                        |
| ------------------------------------------------------------------------------------------------ | ---------- | --------------------------------- |
| Turbonomic user whose role and scope allow all virtual machines and hosts                        | Read       | Devices (Auth Type credentials)   |
| OAuth 2.0 client with a role that can view all virtual machines and hosts (for example OBSERVER) | Read       | Devices (Auth Type oauth\_client) |

## Create credentials in IBM Turbonomic

{% stepper %}
{% step %}

### Choose how to sign in

**credentials** works on every Turbonomic 8 version. **oauth\_client** needs Turbonomic 8.12.4 or later and is the safer choice for SaaS instances that use SSO only.
{% endstep %}

{% step %}

### For credentials

Use a Turbonomic user that can see all virtual machines and hosts, because the API returns only what the role and scope allow. Active Directory users sign in with their user principal name (<user@example.com>).
{% endstep %}

{% step %}

### For an OAuth 2.0 client

Create an OAuth 2.0 client in Turbonomic. It must use the **client\_secret\_basic** authentication method (the default). Note the client ID, the secret and the role, for example `OBSERVER`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required    | Type    | Default       | Description                                                                                    |
| ------------- | ----------- | ------- | ------------- | ---------------------------------------------------------------------------------------------- |
| IP            | Yes         | Text    | None          | Host name or IP address of the instance.                                                       |
| Port          | No          | Integer | `443`         | Port.                                                                                          |
| Is Secure     | No          | Boolean | `true`        | Use HTTPS. Self-signed certificates are accepted.                                              |
| Auth Type     | No          | Choice  | `credentials` | `credentials` or `oauth_client`.                                                               |
| Username      | Conditional | Text    | None          | Required for `credentials`.                                                                    |
| Password      | Conditional | Text    | None          | Required for `credentials`.                                                                    |
| Client ID     | Conditional | Text    | None          | Required for `oauth_client`.                                                                   |
| Client Secret | Conditional | Text    | None          | Required for `oauth_client`.                                                                   |
| Client Role   | Conditional | Text    | None          | Required for `oauth_client`. Role of the OAuth client, in upper case. It must match exactly.   |
| Page Size     | No          | Integer | `500`         | Machines per page. Turbonomic returns at most 500 unless its administrator changed that limit. |
| Proxy         | No          | Text    | None          | Proxy in `host:port` form.                                                                     |
| Timeout       | No          | Integer | `30`          | Seconds to wait for API responses.                                                             |

## Troubleshooting

| Error message                                                                                   | Cause                                                      | Fix                                   |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------- |
| 'client\_id', 'client\_secret' and 'client\_role' are required for the oauth\_client auth type. | Auth Type is oauth\_client and one of the fields is empty. | Fill in all three fields.             |
| 'username' and 'password' are required for the credentials auth type.                           | Auth Type is credentials and a field is empty.             | Fill in the user name and password.   |
| Turbonomic login response has no JSESSIONID cookie.                                             | The login call returned no session cookie.                 | Check the user name and password.     |
| Turbonomic token response has no access token.                                                  | The token call returned no token.                          | Check the client ID, secret and role. |
| Turbonomic hosts could not be read, only virtual machines are collected.                        | The host search failed. Logged as a warning.               | Check the role scope.                 |

## Change history

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