Netskope API Client Library
First, install skopecli
:
go get -u github.com/greenpau/go-netskope/cmd/skopecli
Next, set environment variables for Netskope API Token:
export NETSKOPE_TOKEN=8c5e8866-0062-4059-b2be-92707e4374da
export NETSKOPE_TENANT_NAME=acmeprod
Alternatively, the settings could be passed in a configuration file. There are two options:
- The
skopecli.yaml
should be located in$HOME/.config/skopecli
or current directory - Pass the location via
-config
flag
---
token: 8c5e8866-0062-4059-b2be-92707e4374da
tenant_name: acmeprod
The following command fetches client data from Netskope API:
skopecli -get-client-data