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

# Cato Networks

Cato Networks provides a cloud-native SASE platform that combines SD-WAN and network security. OctoXLabs reads the devices known to your Cato account through the GraphQL API and adds them to the device inventory.

## Use cases

* **Find Cato devices that no endpoint tool covers.** List devices seen by Cato Networks that are not reported by another adapter. Replace `falcon-crowdstrike` with the slug of your endpoint protection adapter.

```
Adapters = cato-networks AND NOT Adapters = falcon-crowdstrike
```

* **Review Cato devices by operating system.** Check which operating systems connect through Cato.

```
Adapters = cato-networks AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                                                         | Port | Protocol |
| ------------------- | ------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.catonetworks.com, or api..catonetworks.com when a prefix is set | 443  | HTTPS    |

If an HTTPS proxy is set, requests go through it.

### Required permissions

| Scope or role                                                                                  | Permission                         | Needed for      |
| ---------------------------------------------------------------------------------------------- | ---------------------------------- | --------------- |
| Admin API key (inherits your CMA admin roles) or Service API key (tied to a Service Principal) | Read access to the account devices | Listing devices |

A key created with **Downgrade to View** has view-only permissions, which is enough for reading devices. The sources do not name a specific role.

## Create credentials in Cato Networks

{% stepper %}
{% step %}

### Find the Account ID

The Account ID is not shown in the Cato Management Application (CMA) interface. Read it from the CMA URL. For `https://cc2.catonetworks.com/#!/26/topology`, the Account ID is `26`.
{% endstep %}

{% step %}

### Find the prefix

The prefix selects the API region. With no prefix (`cc.catonetworks.com`) the connector uses `https://api.catonetworks.com/api/v1/graphql2`. With a region prefix such as `cc.us1.catonetworks.com`, it uses `https://api.us1.catonetworks.com/api/v1/graphql2`. Include the `cc.` part when you enter the prefix.
{% endstep %}

{% step %}

### Create an API key

In the CMA, go to **Resources > Admin API Keys** (personal key tied to your admin account) or **Resources > Service API Keys** (shared key tied to a Service Principal). Click **New**. For a service key, select the Service Principal. Enter a **Key Name**.
{% endstep %}

{% step %}

### Set restrictions

Optionally select **Downgrade to View** for view-only permissions, restrict access to specific IP addresses or ranges (the default allows any IP), and set an expiration date.
{% endstep %}

{% step %}

### Copy the key

Click **Apply**, copy the key from the pop-up, then click **OK**. The value cannot be retrieved again.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter   | Required | Type    | Default | Description                                                                                |
| ----------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------ |
| Account ID  | Yes      | String  | None    | Internal Cato account ID, taken from the CMA URL.                                          |
| Prefix      | No       | String  | None    | API region prefix, for example `cc.us1.catonetworks.com`. Empty uses the default API host. |
| API Key     | Yes      | String  | None    | Cato API key. Stored as a sensitive value.                                                 |
| HTTPS Proxy | No       | String  | None    | Proxy URL for HTTPS requests. Advanced option.                                             |
| Timeout     | No       | Integer | 30      | Seconds to wait for an API response. Advanced option.                                      |

## Troubleshooting

| Error message                                                  | Cause                                                           | Fix                                                 |
| -------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------- |
| Failed to fetch devices: {status}                              | The API answered with a status other than 200 during discovery. | Check the API key, the Account ID and the prefix.   |
| Invalid JSON response while fetching devices (status={status}) | The response body is not valid JSON.                            | Check the prefix and any proxy in front of the API. |

## Change history

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