> 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/v/vmware-mdm-airwatch.md).

# Vmware MDM Airwatch

VMware Workspace ONE UEM (AirWatch) manages mobile and desktop devices. OctoXLabs reads the enrolled devices and, if you enable it, their installed applications. This adds platform, owner email and last seen data to the inventory.

## Use cases

* List all devices enrolled in AirWatch.

```
Adapters = vmware-mdm-airwatch
```

## Before you begin

### Network

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

### Required permissions

| Scope or role              | Permission     | Needed for                         |
| -------------------------- | -------------- | ---------------------------------- |
| AirWatch account           | Read           | Devices and installed applications |
| REST API key of type Admin | Not applicable | Tenant code header                 |

## Create credentials in Vmware MDM Airwatch

{% stepper %}
{% step %}

### Enable REST API access

In the AirWatch console go to **Groups & Settings > All Settings > System > Advanced > API > REST API**. On the **General** tab select **Enabled** under **Enable API Access**.
{% endstep %}

{% step %}

### Create an API key

On the same page click **Add**. Enter a name and set the type to **Admin**. Copy and save the key.
{% endstep %}

{% step %}

### Prepare the account

Use an AirWatch account with read permission. Enter its user name and password in the connection.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                            | Required | Type    | Default | Description                                                          |
| ------------------------------------ | -------- | ------- | ------- | -------------------------------------------------------------------- |
| IP or Hostname                       | Yes      | Text    |         | AirWatch host.                                                       |
| Port                                 | No       | Integer | 443     | Server port.                                                         |
| Username                             | Yes      | Text    |         | Account name.                                                        |
| Password                             | Yes      | Text    |         | Account password.                                                    |
| Tenant ID / API Key                  | Yes      | Text    |         | Sent in the `aw-tenant-code` header.                                 |
| Version                              | No       | Text    | 23.0.0  | AirWatch API version.                                                |
| Timeout                              | No       | Integer | 30      | Seconds to wait for API responses.                                   |
| Use Device Serial Number as Hostname | No       | Boolean | False   | Use the serial number as the host name.                              |
| Fetch Applications?                  | No       | Boolean | False   | Add installed applications to each device.                           |
| Use Mac Aggregation                  | No       | Boolean | False   | Use the MAC address instead of the host name as the aggregation key. |
| Is Secure?                           | No       | Boolean | True    | Use HTTPS.                                                           |
| Thread Count                         | No       | Integer | 32      | Parallel threads. Min 1, max 32.                                     |
| Sleep Time                           | No       | Integer | 0       | Seconds to wait while threads are created.                           |

## Troubleshooting

| Error message | Cause                                 | Fix                                                                            |
| ------------- | ------------------------------------- | ------------------------------------------------------------------------------ |
| Not verified  | The adapter has no custom error text. | Check the credentials, the tenant API key and that REST API access is enabled. |

## Change history
