Skip to content

yuta519/zscaler_golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zscaler Golang

What is this repository?

  • This repository is a library to use Zscaler API for GO.
  • I'm developing ZIA SDK for GO in accordance with Zsclaer help page

Prerequisite

Zsclaer (ZIA)

  • You need ZIA API key, Adminuser ID and Password.
  • ZIA API is not enabled initially, so you need send a support ticket.

Stacks

  • Go
    • Version 1.8 or above
  • Library
    • gopkg.in/ini.v1
  • API
    • Zscaler Internet Access

Quick Start

  1. Prepare ZIA credentiasl You need write your ZIA credential inforamtion at .envrc and register as evironmental variables.
export ZIA_USERNAME="[email protected]"
export ZIA_PASSWORD="P@ssw0rd"
export ZIA_HOSTNAME="zsapi.zscaler.net"
export ZIA_APIKEY="OQ2Dzv1Nzgj5"

How to setup

  1. Build main.go Run below command.

make build

After running, you could find zia file on your current directory.

How to build

  1. Using zia You could try some zia command. Just run below, you can see usages.

./zia

Commands:
  zia credential                      # Show credential info placed in config.ini

  zia auth exclude                    # Show exempted urls of cookie auth login

  zia adminuser COMMAND               # Run a command about adminusers
                                        ls
                                        create

  zia adminrole COMMAND               # Run a command about adminusers
                                        ls

  zia urlcategory COMMAND             # Run a command about urlcategory
                                        ls
                                        lookup [URLS]

  zia urlfilter COMMAND                 # Run a command about firewall
                                        ls
                                        --id [ID]
                                        --all

  zia firewall COMMAND                 # Run a command about firewall
                                        ls
                                        --id [ID]
                                        --all

  zia network COMMAND                 # Run a command about network
                                        ipdst ls
                                        ipsrc ls

How to build

About

Using Zscaler in Go

Resources

Stars

Watchers

Forks

Packages

No packages published