> 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/m/morpheus.md).

# Morpheus

Morpheus is a hybrid cloud management platform. OctoXLabs reads servers and users from the Morpheus API and adds them to the device and user inventories.

## Use cases

* List the servers managed by Morpheus.

```
Adapters = morpheus
```

* List the Morpheus users that never logged on in the last 90 days.

```
Adapters = morpheus AND NOT LastLogOnTime last now-90d/d
```

## Before you begin

### Network

| Source              | Destination   | Port                        | Protocol |
| ------------------- | ------------- | --------------------------- | -------- |
| OctoXLabs connector | Morpheus host | 443 (default, configurable) | HTTPS    |

### Required permissions

| Scope or role              | Permission | Needed for |
| -------------------------- | ---------- | ---------- |
| View permission on Servers | Read       | Servers    |
| View permission on Users   | Read       | Users      |

## Create credentials in Morpheus

{% stepper %}
{% step %}

### Create a user

Ask an admin to create a user in the UI: Admin > Users > New User.
{% endstep %}

{% step %}

### Grant permissions

Give the user view permission for Servers and Users.
{% endstep %}

{% step %}

### Pick an OAuth client

Morpheus ships with a pre-configured OAuth client commonly named `morph-api`, used with the password grant. If you need your own, an admin can create or edit OAuth clients in Settings (Primary Tenant) > OAuth / API clients.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                       | Required | Type    | Default | Description                                                                             |
| ------------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------- |
| IP or Domain (`ip`)             | Yes      | String  |         | IP address or domain of the Morpheus host.                                              |
| Port (`port`)                   | No       | Integer | 443     | Morpheus port.                                                                          |
| Username (`username`)           | Yes      | String  |         | Account used to connect.                                                                |
| Password (`password`)           | Yes      | String  |         | Password of the account.                                                                |
| Client ID (`client_id`)         | Yes      | String  |         | OAuth client ID, for example `morph-api`.                                               |
| Is Secure (`is_secure`)         | No       | Boolean | True    | Use HTTPS.                                                                              |
| Fetch Devices (`fetch_devices`) | No       | Boolean | True    | Fetch servers.                                                                          |
| Fetch Users (`fetch_users`)     | No       | Boolean | True    | Fetch users. In the current code, users are fetched only when Fetch Devices is also on. |
| Timeout (`timeout`)             | No       | Integer | 30      | Seconds to wait for API responses.                                                      |

## Troubleshooting

| Error message | Cause | Fix                                    |
| ------------- | ----- | -------------------------------------- |
| Not verified  |       | No adapter-specific error text in code |

## Change history

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