> 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/c/cloudvision-arista.md).

# CloudVision Arista

CloudVision as-a-Service (CVaaS) is the cloud network management service for Arista devices. OctoXLabs uses the CloudVision Resource APIs to add the device inventory to the inventory. For a self-hosted CloudVision Portal use the CloudVision Arista On Prem adapter instead.

## Use cases

* List Arista network devices that CVaaS reports.

```
Adapters = cloudvision-arista
```

* Find Arista devices that are missing from the CMDB.

```
Adapters = cloudvision-arista AND NOT Adapters = servicenow-cmdb
```

## Before you begin

### Network

Use the cluster that matches your region:

| Region                  | Url                                                                                   |
| ----------------------- | ------------------------------------------------------------------------------------- |
| United States 1a        | [www.arista.io](http://www.arista.io)                                                 |
| United States 1b        | [www.cv-prod-us-central1-b.arista.io](http://www.cv-prod-us-central1-b.arista.io)     |
| United States 1c        | [www.cv-prod-us-central1-c.arista.io](http://www.cv-prod-us-central1-c.arista.io)     |
| Canada                  | [www.cv-prod-na-northeast1-b.arista.io](http://www.cv-prod-na-northeast1-b.arista.io) |
| Europe West 2 (Germany) | [www.cv-prod-euwest-2.arista.io](http://www.cv-prod-euwest-2.arista.io)               |
| United Kingdom          | [www.cv-prod-uk-1.arista.io](http://www.cv-prod-uk-1.arista.io)                       |
| Japan                   | [www.cv-prod-apnortheast-1.arista.io](http://www.cv-prod-apnortheast-1.arista.io)     |
| Australia               | [www.cv-prod-ausoutheast-1.arista.io](http://www.cv-prod-ausoutheast-1.arista.io)     |
| India                   | [www.cv-prod-india-1.arista.io](http://www.cv-prod-india-1.arista.io)                 |

| Source              | Destination                                   | Port | Protocol |
| ------------------- | --------------------------------------------- | ---- | -------- |
| OctoXLabs connector | CVaaS cluster hostname (see the region table) | 443  | HTTPS    |

### Required permissions

| Scope or role                                                        | Permission | Needed for       |
| -------------------------------------------------------------------- | ---------- | ---------------- |
| network-operator (any role with read access to the device inventory) | Read       | Device inventory |

## Create credentials in CloudVision Arista

{% stepper %}
{% step %}

### Open service accounts

Log in to CloudVision, open **Settings** (gear icon) and go to **Access Control > Service Accounts**.
{% endstep %}

{% step %}

### Create the service account

Click **+ New Service Account**, give it a name and assign a role with read access to the device inventory. **network-operator** is sufficient.
{% endstep %}

{% step %}

### Enable it

Make sure the account status is **Enabled**.
{% endstep %}

{% step %}

### Generate the token

Open the service account, click **Generate** in the **Service Account Tokens** section and set a description and a validity period.
{% endstep %}

{% step %}

### Copy the token

Copy the token immediately.

{% hint style="warning" %}
The token is shown only once. It expires at the end of the validity period. After it expires, discoveries fail with an authorization error. Generate a new token and update the connection.
{% endhint %}
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type     | Default | Description                                                                                                                                                                                   |
| --------------------- | -------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Url                   | Yes      | Text     |         | Hostname of your CVaaS cluster. Hostname only, no `https://` and no path. The `www.` prefix is mandatory. If you are unsure, copy the hostname from the browser address bar after you log in. |
| Service Account Token | Yes      | Password |         | Token of the service account. Username and password are not accepted by CVaaS.                                                                                                                |
| Timeout               | No       | Number   | 30      | Seconds to wait for API responses.                                                                                                                                                            |
| Proxy                 | No       | Text     |         | Proxy in `host:port` format, for example `10.0.0.5:3128`. Leave empty for a direct connection.                                                                                                |

## Troubleshooting

No adapter-specific error messages are documented for this adapter.

## Change history

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