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

# Netskope

Netskope is a secure access service edge (SASE) platform. OctoXLabs reads the Netskope clients (endpoints running the Netskope client) of your tenant and adds them to the device inventory.

## Use cases

* List the devices that run the Netskope client.

```
Adapters = netskope
```

* Find servers that do not run the Netskope client.

```
Category = Server AND NOT Adapters = netskope
```

## Before you begin

### Network

| Source              | Destination                              | Port | Protocol                           |
| ------------------- | ---------------------------------------- | ---- | ---------------------------------- |
| OctoXLabs connector | Your Netskope tenant (the URL you enter) | 443  | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role                                      | Permission | Needed for |
| -------------------------------------------------- | ---------- | ---------- |
| API token with read access to the clients endpoint | Read       | Clients    |

The frontend instructions describe token creation on the REST API v2 page with Read or Read+Write privileges per endpoint. Read includes GET. The code calls `/api/v1/clients` and sends the token in the request body. See the TODO note at the end of the page.

## Create credentials in Netskope

{% stepper %}
{% step %}

### Create a token

On the REST API v2 page of your tenant, select New Token.
{% endstep %}

{% step %}

### Name the token

Enter a token name and the token expiration time. Select Add Endpoint to choose the API endpoints to use with the token.
{% endstep %}

{% step %}

### Set privileges

Specify the privileges for each endpoint. Read includes GET. Read+Write includes GET, PUT, POST, PATCH and DELETE.
{% endstep %}

{% step %}

### Save and copy

Select Save. Copy the token before you close the notification, because it is not shown again.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                   | Required | Type    | Default | Description                                                                 |
| --------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------- |
| URL (`url`)                 | Yes      | String  |         | URL of your Netskope tenant, without a protocol.                            |
| API Token (`token`)         | Yes      | String  |         | Netskope API token.                                                         |
| Is Secure (`is_secure`)     | No       | Boolean | True    | Use HTTPS.                                                                  |
| Proxy (`proxy`)             | No       | String  |         | Proxy host and port, sent as an `http://` proxy URL.                        |
| Last X Days (`last_x_days`) | No       | Integer | 0       | Fetch only clients with an event in the last X days. 0 fetches all clients. |
| Timeout (`timeout`)         | No       | Integer | 30      | Seconds to wait for API responses.                                          |

## Troubleshooting

| Error message                                                                    | Cause                                                      | Fix                                                |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------- |
| Same page returned for skip=, stopping pagination. The API is not honoring skip. | The API returned the same page twice. Logged as a warning. | Contact support if the device count looks too low. |

## Change history
