Zscaler Internet Access CLI
Project description
Zscaler Internet Access CLI
This is a CLI for Zscaler Internet Access. This cli (or library package) is designed to support the Zscaler Internet Access (ZIA) API and SD-WAN API (aka "Partner API"). All API referecnes can be found here [LINK]. PLEASE READ THE DOCUMENTATION BEFORE CONTACTING ZSCALER
This CLI has been developed mainly using Python 3.8.5 on Ubuntu 20.04 LTS (Focal Fossa).
NOTE: This repository will experience frequent updates. To minimize breakage, public method names will not change. If you run into any defects, please open issues [HERE.]
Quick Start
-
If you have not verified your credentials, we suggest starting [HERE], unless you are already familar with this API.
-
Set profile
$ mkdir ~/.zscaler
$ cat > ~/.zscaler/profile.yaml <<EOF
default:
url: https://admin.<ZIA-CLOUD>.net
username: <ZIA-ADMIN-USER-ID>
password: <ZIA-ADMIN-USER-PASSWORD>
apikey: <ZIA-API-KEY>
partner:
url: https://admin.<ZIA-CLOUD>.net
username: <ZIA-PARTNER-ADMIN-USER-ID>
password: <ZIA-PARTNER-ADMIN-USER-PASSWORD>
apikey: <PARTNER-API-KEY>
EOF
- Install package
$ pip install zia
- Check out examples
$ zia --help
$ zia policies --help
$ zia policies list
[
{
"id": 463593,
"accessControl": "READ_WRITE",
"name": "URL Filtering Rule-1",
"order": 8,
"protocols": [
"ANY_RULE"
],
"urlCategories": [
"OTHER_ADULT_MATERIAL",
"ADULT_THEMES",
"LINGERIE_BIKINI",
"NUDITY",
"PORNOGRAPHY",
"SEXUALITY",
"ADULT_SEX_EDUCATION",
"K_12_SEX_EDUCATION",
"OTHER_DRUGS",
"OTHER_ILLEGAL_OR_QUESTIONABLE",
"COPYRIGHT_INFRINGEMENT",
"COMPUTER_HACKING",
"QUESTIONABLE",
"PROFANITY",
"MATURE_HUMOR",
"ANONYMIZER"
],
...
API Support
SD-WAN (Partner) API
- VPN Credentials
- Locations
- Activate
Licensing
This work is released under the MIT license, forked from eparra's zscaler-python-sdk v0.5. A copy of the license is provided in the LICENSE file.
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
Built Distribution
File details
Details for the file zia-0.1.4.tar.gz
.
File metadata
- Download URL: zia-0.1.4.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.2 CPython/3.8.5 Linux/5.4.0-51-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910b63f27cbf27db3e9b7f0d907d5b5f6799e1d5bfcecdb78591871cd28cac30 |
|
MD5 | 2ee7a29b0b25fc6518d87cd1429e06b0 |
|
BLAKE2b-256 | f5ebe22fc416e2ba45b1ffa78dd63529908274c52424481425d5309cdf73a6a1 |
File details
Details for the file zia-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: zia-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.2 CPython/3.8.5 Linux/5.4.0-51-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b83b74b0d9f17bf950fbc56c5d0e5de2fb82d45d8c21bee4c9bed292238f665 |
|
MD5 | 6a80dc0a2968006630d11caca078e2d4 |
|
BLAKE2b-256 | 62a60617e5ca54ed9b345e63b83e837f03d908e2b34e403126a4afb2309b86b9 |