- This repository is a library to use Zscaler API for GO.
- I'm developing ZIA SDK for GO in accordance with Zsclaer help page
- You need ZIA API key, Adminuser ID and Password.
- ZIA API is not enabled initially, so you need send a support ticket.
- Go
- Version 1.8 or above
- Library
- gopkg.in/ini.v1
- API
- Zscaler Internet Access
- 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"
- Build main.go Run below command.
make build
After running, you could find zia
file on your current directory.
- Using
zia
You could try somezia
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