> 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/f/f5-distributed-cloud.md).

# F5 Distributed Cloud

F5 Distributed Cloud is a SaaS platform for application delivery and security with customer edge sites. OctoXLabs uses its console API to add customer edge sites as devices, HTTP load balancers as web applications (one per domain), network and web application firewall policies, and console users.

## Use cases

* List customer edge sites with their hardware and operating system.

```
Adapters = f5-distributed-cloud
```

* Review every domain published through HTTP load balancers.
* Audit firewall rules of your network and web application firewall policies.

## Before you begin

### Network

| Source              | Destination                                                         | Port | Protocol |
| ------------------- | ------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Console tenant host, for example `acmecorp.console.ves.volterra.io` | 443  | HTTPS    |

### Required permissions

| Scope or role                                                                          | Permission | Needed for        |
| -------------------------------------------------------------------------------------- | ---------- | ----------------- |
| Read access to sites and users in the `system` namespace                               | Read       | Devices and users |
| Read access to HTTP load balancers in every listed namespace                           | Read       | Web applications  |
| Read access to network and web application firewall policies in every listed namespace | Read       | Policies          |

An API token acts with the roles of the user who created it. The connection test reads each list for the asset types you turn on.

## Create credentials in F5 Distributed Cloud

{% stepper %}
{% step %}

### Open Credentials

In the Distributed Cloud Console, go to **Administration** > **Personal Management** > **Credentials**.
{% endstep %}

{% step %}

### Add credentials

Click **Add Credentials** and choose **API Token** as the credential type.
{% endstep %}

{% step %}

### Set an expiry

Set an expiry date. The default is 90 days and the maximum is 365 days. Renew the token before it expires.
{% endstep %}

{% step %}

### Generate and copy

Click **Generate** and copy the token. It is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter              | Required | Type              | Default   | Description                                                                                                                                                                                                                         |
| ---------------------- | -------- | ----------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain                 | Yes      | String            | None      | Host name of your console tenant, without `https://`.                                                                                                                                                                               |
| Api Token              | Yes      | String            | None      | API token.                                                                                                                                                                                                                          |
| Namespaces             | No       | List of strings   | `default` | Namespaces whose load balancers and firewall policies are collected. Add every application namespace, `system` for site network firewall policies, and `shared` for shared policies. Sites and users are always read from `system`. |
| Fetch Devices          | No       | Boolean           | `True`    | Collect customer edge sites as devices. F5 regional edges are skipped.                                                                                                                                                              |
| Fetch Web Applications | No       | Boolean           | `True`    | Collect HTTP load balancers as web applications, one per domain.                                                                                                                                                                    |
| Fetch Policies         | No       | Boolean           | `True`    | Collect network firewall and web application firewall policies. A rule list becomes one policy per rule.                                                                                                                            |
| Fetch Users            | No       | Boolean           | `True`    | Collect console users. Users without an e-mail address are skipped.                                                                                                                                                                 |
| Proxy                  | No       | String            | None      | Proxy in `host:port` form.                                                                                                                                                                                                          |
| Timeout                | No       | Integer (seconds) | `30`      | Time to wait for API responses.                                                                                                                                                                                                     |

## Troubleshooting

| Error message                               | Cause                       | Fix          |
| ------------------------------------------- | --------------------------- | ------------ |
| `Max retries exceeded. Status Code: <code>` | F5 kept answering HTTP 429. | Retry later. |

## Change history

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