> 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-nsx-advanced-load-balancer.md).

# VMware NSX Advanced Load Balancer

VMware NSX Advanced Load Balancer (Avi) is a software load balancer. OctoXLabs reads the Service Engines from the Controller. This adds each engine's management IP and software version to the inventory.

## Use cases

* List all Service Engines.

```
Adapters = vmware-nsx-advanced-load-balancer
```

## Before you begin

### Network

| Source              | Destination           | Port                        | Protocol |
| ------------------- | --------------------- | --------------------------- | -------- |
| OctoXLabs connector | Avi Controller        | 443 (default, configurable) | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional) | Set in **Proxy**            | HTTP     |

### Required permissions

| Scope or role                      | Permission | Needed for               |
| ---------------------------------- | ---------- | ------------------------ |
| Role that can read Service Engines | Read       | Service Engine inventory |

The connection does not send the `X-Avi-Tenant` header, so only Service Engines in the default tenant of the user are collected.

## Create credentials in VMware NSX Advanced Load Balancer

HTTP basic authentication is disabled by default on the Controller. Enable it first.

{% stepper %}
{% step %}

### Enable basic authentication in the UI

Go to **Administration > System Settings > EDIT > Access**. Under **System Access Settings** enable **Allow Basic Authentication**.
{% endstep %}

{% step %}

### Or enable it in the CLI

Run these commands.

```
configure systemconfiguration
portal_configuration
allow_basic_authentication
exit
exit
```

{% endstep %}

{% step %}

### Choose the account

Use an account whose role can read Service Engines and whose default tenant holds the Service Engines you want to see.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter               | Required | Type    | Default | Description                         |
| ----------------------- | -------- | ------- | ------- | ----------------------------------- |
| IP                      | Yes      | Text    |         | Controller address.                 |
| Port                    | No       | Integer | 443     | Controller port.                    |
| Username                | Yes      | Text    |         | Account name.                       |
| Password                | Yes      | Text    |         | Account password.                   |
| Api Version             | No       | Text    | 32.1.2  | Sent in the `X-Avi-Version` header. |
| Is Secure               | No       | Boolean | True    | Use HTTPS.                          |
| Per Page                | No       | Integer | 200     | Service Engines per request.        |
| Fetch Devices Operation | No       | Boolean | True    | Collect Service Engines.            |
| Proxy                   | No       | Text    |         | Proxy in `host:port` format.        |
| Timeout                 | No       | Integer | 30      | Seconds to wait for API responses.  |

## Troubleshooting

| Error message | Cause                                 | Fix                                                                               |
| ------------- | ------------------------------------- | --------------------------------------------------------------------------------- |
| Not verified  | The adapter has no custom error text. | If basic authentication is disabled on the Controller, the test fails. Enable it. |

## Change history

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