catocli 3.0.22__py3-none-any.whl → 3.0.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of catocli might be problematic. Click here for more details.
- catocli/Utils/clidriver.py +8 -8
- catocli/__init__.py +1 -1
- catocli/parsers/customParserApiClient.py +6 -2
- catocli/parsers/utils/export_utils.py +6 -2
- catocli-3.0.24.dist-info/METADATA +184 -0
- {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/RECORD +154 -154
- models/mutation.policy.antiMalwareFileHash.addRule.json +0 -20
- models/mutation.policy.antiMalwareFileHash.addSection.json +0 -103
- models/mutation.policy.antiMalwareFileHash.createPolicyRevision.json +0 -123
- models/mutation.policy.antiMalwareFileHash.discardPolicyRevision.json +0 -123
- models/mutation.policy.antiMalwareFileHash.moveRule.json +0 -20
- models/mutation.policy.antiMalwareFileHash.moveSection.json +0 -103
- models/mutation.policy.antiMalwareFileHash.publishPolicyRevision.json +0 -123
- models/mutation.policy.antiMalwareFileHash.removeRule.json +0 -20
- models/mutation.policy.antiMalwareFileHash.removeSection.json +0 -103
- models/mutation.policy.antiMalwareFileHash.updatePolicy.json +0 -123
- models/mutation.policy.antiMalwareFileHash.updateRule.json +0 -20
- models/mutation.policy.antiMalwareFileHash.updateSection.json +0 -103
- models/mutation.policy.appTenantRestriction.addRule.json +0 -20
- models/mutation.policy.appTenantRestriction.addSection.json +0 -103
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +0 -123
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +0 -123
- models/mutation.policy.appTenantRestriction.moveRule.json +0 -20
- models/mutation.policy.appTenantRestriction.moveSection.json +0 -103
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +0 -123
- models/mutation.policy.appTenantRestriction.removeRule.json +0 -20
- models/mutation.policy.appTenantRestriction.removeSection.json +0 -103
- models/mutation.policy.appTenantRestriction.updatePolicy.json +0 -123
- models/mutation.policy.appTenantRestriction.updateRule.json +0 -20
- models/mutation.policy.appTenantRestriction.updateSection.json +0 -103
- models/mutation.policy.applicationControl.addRule.json +0 -20
- models/mutation.policy.applicationControl.addSection.json +0 -103
- models/mutation.policy.applicationControl.createPolicyRevision.json +0 -123
- models/mutation.policy.applicationControl.discardPolicyRevision.json +0 -123
- models/mutation.policy.applicationControl.moveRule.json +0 -20
- models/mutation.policy.applicationControl.moveSection.json +0 -103
- models/mutation.policy.applicationControl.publishPolicyRevision.json +0 -123
- models/mutation.policy.applicationControl.removeRule.json +0 -20
- models/mutation.policy.applicationControl.removeSection.json +0 -103
- models/mutation.policy.applicationControl.updatePolicy.json +0 -123
- models/mutation.policy.applicationControl.updateRule.json +0 -20
- models/mutation.policy.applicationControl.updateSection.json +0 -103
- models/mutation.policy.dynamicIpAllocation.addRule.json +0 -20
- models/mutation.policy.dynamicIpAllocation.addSection.json +0 -103
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +0 -123
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +0 -123
- models/mutation.policy.dynamicIpAllocation.moveRule.json +0 -20
- models/mutation.policy.dynamicIpAllocation.moveSection.json +0 -103
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +0 -123
- models/mutation.policy.dynamicIpAllocation.removeRule.json +0 -20
- models/mutation.policy.dynamicIpAllocation.removeSection.json +0 -103
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +0 -123
- models/mutation.policy.dynamicIpAllocation.updateRule.json +0 -20
- models/mutation.policy.dynamicIpAllocation.updateSection.json +0 -103
- models/mutation.policy.internetFirewall.addRule.json +0 -20
- models/mutation.policy.internetFirewall.addSection.json +0 -103
- models/mutation.policy.internetFirewall.createPolicyRevision.json +0 -123
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +0 -123
- models/mutation.policy.internetFirewall.moveRule.json +0 -20
- models/mutation.policy.internetFirewall.moveSection.json +0 -103
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +0 -123
- models/mutation.policy.internetFirewall.removeRule.json +0 -20
- models/mutation.policy.internetFirewall.removeSection.json +0 -103
- models/mutation.policy.internetFirewall.updatePolicy.json +0 -123
- models/mutation.policy.internetFirewall.updateRule.json +0 -20
- models/mutation.policy.internetFirewall.updateSection.json +0 -103
- models/mutation.policy.remotePortFwd.addRule.json +0 -20
- models/mutation.policy.remotePortFwd.addSection.json +0 -103
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +0 -123
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +0 -123
- models/mutation.policy.remotePortFwd.moveRule.json +0 -20
- models/mutation.policy.remotePortFwd.moveSection.json +0 -103
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +0 -123
- models/mutation.policy.remotePortFwd.removeRule.json +0 -20
- models/mutation.policy.remotePortFwd.removeSection.json +0 -103
- models/mutation.policy.remotePortFwd.updatePolicy.json +0 -123
- models/mutation.policy.remotePortFwd.updateRule.json +0 -20
- models/mutation.policy.remotePortFwd.updateSection.json +0 -103
- models/mutation.policy.socketLan.addRule.json +0 -40
- models/mutation.policy.socketLan.addSection.json +0 -103
- models/mutation.policy.socketLan.createPolicyRevision.json +0 -143
- models/mutation.policy.socketLan.discardPolicyRevision.json +0 -143
- models/mutation.policy.socketLan.moveRule.json +0 -40
- models/mutation.policy.socketLan.moveSection.json +0 -103
- models/mutation.policy.socketLan.publishPolicyRevision.json +0 -143
- models/mutation.policy.socketLan.removeRule.json +0 -40
- models/mutation.policy.socketLan.removeSection.json +0 -103
- models/mutation.policy.socketLan.updatePolicy.json +0 -143
- models/mutation.policy.socketLan.updateRule.json +0 -40
- models/mutation.policy.socketLan.updateSection.json +0 -103
- models/mutation.policy.terminalServer.addRule.json +0 -20
- models/mutation.policy.terminalServer.addSection.json +0 -103
- models/mutation.policy.terminalServer.createPolicyRevision.json +0 -123
- models/mutation.policy.terminalServer.discardPolicyRevision.json +0 -123
- models/mutation.policy.terminalServer.moveRule.json +0 -20
- models/mutation.policy.terminalServer.moveSection.json +0 -103
- models/mutation.policy.terminalServer.publishPolicyRevision.json +0 -123
- models/mutation.policy.terminalServer.removeRule.json +0 -20
- models/mutation.policy.terminalServer.removeSection.json +0 -103
- models/mutation.policy.terminalServer.updatePolicy.json +0 -123
- models/mutation.policy.terminalServer.updateRule.json +0 -20
- models/mutation.policy.terminalServer.updateSection.json +0 -103
- models/mutation.policy.tlsInspect.addRule.json +0 -20
- models/mutation.policy.tlsInspect.addSection.json +0 -103
- models/mutation.policy.tlsInspect.createPolicyRevision.json +0 -123
- models/mutation.policy.tlsInspect.discardPolicyRevision.json +0 -123
- models/mutation.policy.tlsInspect.moveRule.json +0 -20
- models/mutation.policy.tlsInspect.moveSection.json +0 -103
- models/mutation.policy.tlsInspect.publishPolicyRevision.json +0 -123
- models/mutation.policy.tlsInspect.removeRule.json +0 -20
- models/mutation.policy.tlsInspect.removeSection.json +0 -103
- models/mutation.policy.tlsInspect.updatePolicy.json +0 -123
- models/mutation.policy.tlsInspect.updateRule.json +0 -20
- models/mutation.policy.tlsInspect.updateSection.json +0 -103
- models/mutation.policy.wanFirewall.addRule.json +0 -20
- models/mutation.policy.wanFirewall.addSection.json +0 -103
- models/mutation.policy.wanFirewall.createPolicyRevision.json +0 -123
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +0 -123
- models/mutation.policy.wanFirewall.moveRule.json +0 -20
- models/mutation.policy.wanFirewall.moveSection.json +0 -103
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +0 -123
- models/mutation.policy.wanFirewall.removeRule.json +0 -20
- models/mutation.policy.wanFirewall.removeSection.json +0 -103
- models/mutation.policy.wanFirewall.updatePolicy.json +0 -123
- models/mutation.policy.wanFirewall.updateRule.json +0 -20
- models/mutation.policy.wanFirewall.updateSection.json +0 -103
- models/mutation.policy.wanNetwork.addRule.json +0 -20
- models/mutation.policy.wanNetwork.addSection.json +0 -103
- models/mutation.policy.wanNetwork.createPolicyRevision.json +0 -123
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +0 -123
- models/mutation.policy.wanNetwork.moveRule.json +0 -20
- models/mutation.policy.wanNetwork.moveSection.json +0 -103
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +0 -123
- models/mutation.policy.wanNetwork.removeRule.json +0 -20
- models/mutation.policy.wanNetwork.removeSection.json +0 -103
- models/mutation.policy.wanNetwork.updatePolicy.json +0 -123
- models/mutation.policy.wanNetwork.updateRule.json +0 -20
- models/mutation.policy.wanNetwork.updateSection.json +0 -103
- models/query.policy.antiMalwareFileHash.policy.json +0 -123
- models/query.policy.appTenantRestriction.policy.json +0 -123
- models/query.policy.applicationControl.policy.json +0 -123
- models/query.policy.dynamicIpAllocation.policy.json +0 -123
- models/query.policy.internetFirewall.policy.json +0 -123
- models/query.policy.remotePortFwd.policy.json +0 -123
- models/query.policy.socketLan.policy.json +0 -143
- models/query.policy.terminalServer.policy.json +0 -123
- models/query.policy.tlsInspect.policy.json +0 -123
- models/query.policy.wanFirewall.policy.json +0 -123
- models/query.policy.wanNetwork.policy.json +0 -123
- schema/catolib.py +64 -56
- catocli-3.0.22.dist-info/METADATA +0 -124
- {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/WHEEL +0 -0
- {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/entry_points.txt +0 -0
- {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/licenses/LICENSE +0 -0
- {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/top_level.txt +0 -0
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: catocli
|
|
3
|
-
Version: 3.0.22
|
|
4
|
-
Summary: Cato Networks cli wrapper for the GraphQL API.
|
|
5
|
-
Home-page: https://github.com/Cato-Networks/cato-cli
|
|
6
|
-
Author: Cato Networks
|
|
7
|
-
Author-email: [email protected]
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Requires-Python: >=3.6
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
License-File: LICENSE
|
|
21
|
-
Requires-Dist: urllib3
|
|
22
|
-
Requires-Dist: certifi
|
|
23
|
-
Requires-Dist: six
|
|
24
|
-
Dynamic: author
|
|
25
|
-
Dynamic: author-email
|
|
26
|
-
Dynamic: classifier
|
|
27
|
-
Dynamic: description
|
|
28
|
-
Dynamic: description-content-type
|
|
29
|
-
Dynamic: home-page
|
|
30
|
-
Dynamic: license-file
|
|
31
|
-
Dynamic: requires-dist
|
|
32
|
-
Dynamic: requires-python
|
|
33
|
-
Dynamic: summary
|
|
34
|
-
|
|
35
|
-
# Cato Networks GraphQL API CLI
|
|
36
|
-
|
|
37
|
-
The package provides a simple to use CLI that reflects industry standards (such as the AWS cli), and enables customers to manage Cato Networks configurations and processes via the [Cato Networks GraphQL API](https://api.catonetworks.com/api/v1/graphql2) easily integrating into configurations management, orchestration or automation frameworks to support the DevOps model.
|
|
38
|
-
|
|
39
|
-
## Installation
|
|
40
|
-
pip3 install catocli
|
|
41
|
-
|
|
42
|
-
## Authentication
|
|
43
|
-
|
|
44
|
-
The Cato CLI uses a profile-based authentication system similar to AWS CLI. You can configure multiple profiles for different environments or accounts.
|
|
45
|
-
|
|
46
|
-
### Quick Setup
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# Configure your first profile (interactive)
|
|
50
|
-
catocli configure set
|
|
51
|
-
|
|
52
|
-
# Or configure non-interactively
|
|
53
|
-
catocli configure set --cato-token "your-api-token" --account-id "12345"
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Profile Management
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
# List profiles
|
|
60
|
-
catocli configure list
|
|
61
|
-
|
|
62
|
-
# Switch profiles
|
|
63
|
-
catocli configure use prod
|
|
64
|
-
|
|
65
|
-
# Show current profile
|
|
66
|
-
catocli configure show
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Legacy Environment Variables (deprecated)
|
|
70
|
-
|
|
71
|
-
For backward compatibility, you can still use environment variables:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
export CATO_TOKEN="12345-abcde-12345-abcde"
|
|
75
|
-
export CATO_ACCOUNT_ID="12345"
|
|
76
|
-
export CATO_DEBUG=True # Optional for debug logs
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
The CLI will automatically migrate these to a default profile on first run.
|
|
80
|
-
|
|
81
|
-
### Documentation
|
|
82
|
-
|
|
83
|
-
For detailed information about profile management, see [PROFILES.md](PROFILES.md).
|
|
84
|
-
|
|
85
|
-
[CLICK HERE](https://support.catonetworks.com/hc/en-us/articles/4413280536081-Generating-API-Keys-for-the-Cato-API) to see how create an API key to authenticate.
|
|
86
|
-
|
|
87
|
-
## Running the CLI
|
|
88
|
-
catocli -h
|
|
89
|
-
catocli query -h
|
|
90
|
-
catocli query entityLookup -h
|
|
91
|
-
catocli query entityLookup '{"type":"country"}`
|
|
92
|
-
|
|
93
|
-
// Override the accountID value as a cli argument
|
|
94
|
-
catocli query entityLookup -accountID=12345 '{"type":"country"}`
|
|
95
|
-
|
|
96
|
-
## Check out run locally not as pip package
|
|
97
|
-
git clone git@github.com:Cato-Networks/cato-cli.git
|
|
98
|
-
cd cato-cli
|
|
99
|
-
python3 -m catocli -h
|
|
100
|
-
|
|
101
|
-
This CLI is a Python 3 application and has been tested with Python 3.6 -> 3.8
|
|
102
|
-
## Requirements:
|
|
103
|
-
python 3.6 or higher
|
|
104
|
-
|
|
105
|
-
## Confirm your version of python if installed:
|
|
106
|
-
Open a terminal
|
|
107
|
-
Enter: python -V or python3 -V
|
|
108
|
-
|
|
109
|
-
## Usage:
|
|
110
|
-
usage: catocli <resource> <command> [options]
|
|
111
|
-
|
|
112
|
-
CLI for query, and mutation operations via API.
|
|
113
|
-
|
|
114
|
-
Positional arguments:
|
|
115
|
-
{entityLookup}
|
|
116
|
-
entityLookup entityLookup reference.
|
|
117
|
-
|
|
118
|
-
Optional arguments:
|
|
119
|
-
-h, --help show this help message and exit
|
|
120
|
-
--version show program's version number and exit
|
|
121
|
-
|
|
122
|
-
## Installing the correct version for environment:
|
|
123
|
-
https://www.python.org/downloads/
|
|
124
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|