> 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/a/akamai.md).

# Akamai

Akamai provides CDN, DNS and security services. OctoXLabs reads the Edge DNS zones and their record sets and adds them as domain assets.

## Use cases

* List every domains asset that Akamai contributes to the inventory.

```
Adapters = akamai
```

* Check what one Akamai connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                               | Port | Protocol                                 |
| ------------------- | --------------------------------------------------------- | ---- | ---------------------------------------- |
| OctoXLabs connector | Your Akamai API host, usually akab-\*.luna.akamaiapis.net | 443  | HTTPS, or HTTP when Is Secure is cleared |

### Required permissions

| Scope or role | Permission              | Needed for            |
| ------------- | ----------------------- | --------------------- |
| DNS - Zones   | Read-Only or Read-Write | Zones and record sets |

The API client needs default access to DNS / Zones. Read-only is enough for the adapter.

## Create credentials in Akamai

{% stepper %}
{% step %}

### Find the host

In Akamai Control Center, open **Identity & Access Management**. The API URL usually looks like `https://akab-*.luna.akamaiapis.net`.
{% endstep %}

{% step %}

### Create an API client

Create an API client with access to **DNS / Zones** (Read-Only or Read-Write).
{% endstep %}

{% step %}

### Copy the credentials

Copy the Client Token, the Client Secret and the Access Token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                    |
| ------------- | -------- | ------- | ------- | ------------------------------------------------------------------------------ |
| Host URL      | Yes      | String  | None    | Akamai API URL. The adapter removes any scheme and uses the Is Secure setting. |
| Client Token  | Yes      | String  | None    | Client token of the API client.                                                |
| Client Secret | Yes      | String  | None    | Client secret of the API client.                                               |
| Access Token  | Yes      | String  | None    | Access token of the API client.                                                |
| Is Secure     | No       | Boolean | True    | Use HTTPS. Clear it to use HTTP.                                               |
| Timeout       | No       | Integer | 30      | Time in seconds to wait for API responses.                                     |
| Thread Count  | No       | Integer | 16      | Parallel threads for record set requests.                                      |
| Sleep Time    | No       | Integer | 0       | Seconds to wait between requests.                                              |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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