Skip to main content

Unofficial Zscaler API python sdk

Project description

Zscaler Python SDK

This is a Python SDK for Zscaler Internet Access. This client library is designed to support the Zscaler Internet Access (ZIA) API. Now This library does not support Zscaler Private Access (ZPA), but this will be implemented in the future. This SDK has been developed mainly using Python 3.9.0 .

NOTE: This repository is not official. Zscaler does not support this repository.

Preparation

You need a ZIA credentials like below.

  • ZIA Admin Username (like admin@example.com)
  • ZIA Admin Password
  • ZIA Hostname (like zscaler.net)
  • ZIA APIKEY (You need to request an api key to Zscaler support team.)

Set profile

If you have verified your credentials, set up your credentials to use this repository. Please replace /Users/utah18 to your arbitrary directory path.

$ mkdir /Users/utah18/.zscaler && cat > /Users/utah18/.zscaler/config.ini <<EOF
[zia]
USERNAME=example@example.com
PASSWORD=P@ssw0rd
HOSTNAME=zscaler.net
APIKEY=xxxxxxxxxxxxxxxxxxxxxxx
EOF

Clone and Install Repository

In this case, we use poetry. If you don't have this, please install poetry from HERE

$ poetry add zscaler-python-sdk

Quick Start

After installing, you can try below to check if you could use this library.

$ python
$ from zscaler_python_sdk.zia import Zia
$ zia = Zia("/Users/utah18/.zscaler/config.ini")
$print(zia.fetch_admin_users())

... Reporting Issues If you have bugs or other issues specifically pertaining to this library, file them here.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zscaler-python-sdk-0.2.1.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

zscaler_python_sdk-0.2.1-py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page