![Logo](images/logo.jpeg)
SDK for zscaler public APIs for ZIA, ZPA and ZCC
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
Gozscaler is an sdk for zscaler public apis built purely in go and without 3rd party dependencies.
- Go version 1.18+ since go generics are used
ZPA sdk
- Client secret and client api.
- Cloud name. options:
- config.private.zscaler.com
- config.zpabeta.net
ZIA sdk
- Administrator, password
- Api key
- Cloud name. options:
- zscaler
- zscloud
- zscalerbeta
- zscalerone
- zscalertwo
- zscalerthree
Below is an example of how you can get started.
- Create a new folder and add main.go file into it.
mkdir ztest cd ztest touch main.go
- Open the file
main.go
and add the following program that display your url rulespackage main import ( "fmt" "log" "github.com/zepryspet/gozscaler/zia" ) func main() { c, err := zia.NewClient(cloudname, admin, password, apikey) if err != nil { log.Panic(err) } rules, err := c.ListUrlRules() if err != nil { log.Panic(err) } fmt.Println(rules) }
- Init go.mod
go mod init go mod tidy
- Run your program
go run main.go
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Release v1.0
- Add tests
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.