Skip to content

greenpau/go-netskope

Repository files navigation

go-netskope

Netskope API Client Library

Table of Contents

Getting Started

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:

  1. The skopecli.yaml should be located in $HOME/.config/skopecli or current directory
  2. 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