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

# Cradlepoint

Cradlepoint NetCloud Manager (NCM) manages Cradlepoint and Ericsson routers. OctoXLabs uses the NCM API v2 to add routers, with their interfaces and firmware version, to the inventory.

## Use cases

* List routers that NetCloud Manager reports.

```
Adapters = cradlepoint
```

* Find routers not seen in the last 30 days.

```
Adapters = cradlepoint AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                                                            | Port | Protocol |
| ------------------- | -------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | NetCloud Manager API (default [www.cradlepointecm.com](http://www.cradlepointecm.com)) | 443  | HTTPS    |

### Required permissions

| Scope or role                                                      | Permission | Needed for                      |
| ------------------------------------------------------------------ | ---------- | ------------------------------- |
| Role that allows reading routers, network interfaces and firmwares | Read       | Routers, net devices, firmwares |

## Create credentials in Cradlepoint

{% stepper %}
{% step %}

### Open the API portal

In NetCloud Manager go to **Tools > NetCloud API**. The API Portal page shows the **X-CP-API-ID** and **X-CP-API-KEY** values.
{% endstep %}

{% step %}

### Create an NCM API 2.0 key

Go to **NCM API 2.0** and click **Add**. Choose a role and, if needed, a subaccount.
{% endstep %}

{% step %}

### Copy the key values

The new key shows its **X-ECM-API-ID** and **X-ECM-API-KEY**.

{% hint style="warning" %}
The X-ECM-API-KEY is shown only once, when the key is created.
{% endhint %}
{% endstep %}

{% step %}

### Check rights

Creating API keys requires administrator rights at the root of the NetCloud Manager account. A key sees only the account and subaccounts it was created for. Every API call counts toward the account limits (500 calls a minute, plus a monthly limit that depends on the subscription).
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default                                                 | Description                                                               |
| ------------- | -------- | -------- | ------------------------------------------------------- | ------------------------------------------------------------------------- |
| Domain        | Yes      | Text     | [www.cradlepointecm.com](http://www.cradlepointecm.com) | NCM API v2 host, without `https://`. Cradlepoint requires the `www` form. |
| X-CP-API-ID   | Yes      | Text     |                                                         | From the API Portal page.                                                 |
| X-CP-API-KEY  | Yes      | Password |                                                         | From the API Portal page.                                                 |
| X-ECM-API-ID  | Yes      | Text     |                                                         | ID of the NCM API 2.0 key.                                                |
| X-ECM-API-KEY | Yes      | Password |                                                         | Key of the NCM API 2.0 key.                                               |
| Proxy         | No       | Text     |                                                         | Proxy in `host:port` format.                                              |
| Timeout       | No       | Number   | 30                                                      | Seconds to wait for API responses.                                        |

## Troubleshooting

| Error message                          | Cause                                            | Fix                   |
| -------------------------------------- | ------------------------------------------------ | --------------------- |
| Max retries exceeded. Status Code: ... | The request kept returning 429, 408, 504 or 524. | Wait and retry later. |

## Change history

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