pan-scm-cli 0.3.0__tar.gz → 0.3.2__tar.gz
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.
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/PKG-INFO +27 -14
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/README.md +26 -13
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/pyproject.toml +1 -1
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/utils/config.py +3 -3
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/LICENSE +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/__init__.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/client.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/README.md +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/__init__.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/command-styling.md +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/deployment.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/network.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/objects.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/commands/security.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/main.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/tests/__init__.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/utils/__init__.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/utils/sdk_client.py +0 -0
- {pan_scm_cli-0.3.0 → pan_scm_cli-0.3.2}/src/scm_cli/utils/validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pan-scm-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: CICD and Network Engineer-friendly CLI tool for Palo Alto Networks Strata Cloud Manager
|
|
5
5
|
Author: Calvin Remsburg
|
|
6
6
|
Author-email: dev@cdot.io
|
|
@@ -17,15 +17,15 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
|
|
18
18
|
# Strata Cloud Manager CLI
|
|
19
19
|
|
|
20
|
-

|
|
21
|
-
[](https://github.com/cdot65/pan-scm/actions/workflows/code-quality.yml)
|
|
22
|
-
[](https://badge.fury.io/py/pan-scm)
|
|
23
|
-
[](https://pypi.org/project/pan-scm/)
|
|
24
|
-
[](https://github.com/cdot65/pan-scm/blob/main/LICENSE)
|
|
20
|
+

|
|
21
|
+
[](https://github.com/cdot65/pan-scm-cli/actions/workflows/code-quality.yml)
|
|
22
|
+
[](https://badge.fury.io/py/pan-scm-cli)
|
|
23
|
+
[](https://pypi.org/project/pan-scm-cli/)
|
|
24
|
+
[](https://github.com/cdot65/pan-scm-cli/blob/main/LICENSE)
|
|
25
25
|
|
|
26
26
|
A powerful command-line interface for managing Palo Alto Networks Strata Cloud Manager configurations. Built on the [pan-scm-sdk](https://github.com/cdot65/pan-scm-sdk), this tool provides network engineers with a consistent, user-friendly CLI experience for automating and managing SCM resources.
|
|
27
27
|
|
|
28
|
-
> **NOTE**: Please refer to the [GitHub Pages documentation site](https://cdot65.github.io/pan-scm/) for all
|
|
28
|
+
> **NOTE**: Please refer to the [GitHub Pages documentation site](https://cdot65.github.io/pan-scm-cli/) for all
|
|
29
29
|
> examples
|
|
30
30
|
|
|
31
31
|
## Table of Contents
|
|
@@ -47,7 +47,20 @@ A powerful command-line interface for managing Palo Alto Networks Strata Cloud M
|
|
|
47
47
|
- [Managing Security Zones](#managing-security-zones)
|
|
48
48
|
- [Managing Security Rules](#managing-security-rules)
|
|
49
49
|
- [Managing Bandwidth Allocations](#managing-bandwidth-allocations)
|
|
50
|
+
- [Managing Applications](#managing-applications)
|
|
51
|
+
- [Managing Application Groups](#managing-application-groups)
|
|
52
|
+
- [Managing Application Filters](#managing-application-filters)
|
|
53
|
+
- [Managing Dynamic User Groups](#managing-dynamic-user-groups)
|
|
54
|
+
- [Managing External Dynamic Lists](#managing-external-dynamic-lists)
|
|
55
|
+
- [Managing HIP Objects](#managing-hip-objects)
|
|
56
|
+
- [Managing HIP Profiles](#managing-hip-profiles)
|
|
57
|
+
- [Managing HTTP Server Profiles](#managing-http-server-profiles)
|
|
58
|
+
- [Managing Services](#managing-services)
|
|
59
|
+
- [Managing Service Groups](#managing-service-groups)
|
|
60
|
+
- [Managing Syslog Server Profiles](#managing-syslog-server-profiles)
|
|
61
|
+
- [Managing Tags](#managing-tags)
|
|
50
62
|
- [Bulk Operations](#bulk-operations)
|
|
63
|
+
- [Backup and Restore Operations](#backup-and-restore-operations)
|
|
51
64
|
- [Development](#development)
|
|
52
65
|
- [Setup](#setup)
|
|
53
66
|
- [Code Quality](#code-quality)
|
|
@@ -104,7 +117,7 @@ A powerful command-line interface for managing Palo Alto Networks Strata Cloud M
|
|
|
104
117
|
Install the package via pip:
|
|
105
118
|
|
|
106
119
|
```bash
|
|
107
|
-
pip install pan-scm
|
|
120
|
+
pip install pan-scm-cli
|
|
108
121
|
```
|
|
109
122
|
|
|
110
123
|
## Usage
|
|
@@ -663,8 +676,8 @@ The backup feature uses the `exact_match=True` parameter to only export objects
|
|
|
663
676
|
1. Clone the repository:
|
|
664
677
|
|
|
665
678
|
```bash
|
|
666
|
-
git clone https://github.com/cdot65/pan-scm.git
|
|
667
|
-
cd pan-scm
|
|
679
|
+
git clone https://github.com/cdot65/pan-scm-cli.git
|
|
680
|
+
cd pan-scm-cli
|
|
668
681
|
```
|
|
669
682
|
|
|
670
683
|
2. Install dependencies and pre-commit hooks:
|
|
@@ -745,9 +758,9 @@ This project is licensed under the Apache 2.0 License. See the [LICENSE](./LICEN
|
|
|
745
758
|
|
|
746
759
|
## Support
|
|
747
760
|
|
|
748
|
-
- **Documentation**: [GitHub Pages site](https://cdot65.github.io/pan-scm/)
|
|
749
|
-
- **Issues**: [GitHub Issues](https://github.com/cdot65/pan-scm/issues)
|
|
750
|
-
- **Discussions**: [GitHub Discussions](https://github.com/cdot65/pan-scm/discussions)
|
|
761
|
+
- **Documentation**: [GitHub Pages site](https://cdot65.github.io/pan-scm-cli/)
|
|
762
|
+
- **Issues**: [GitHub Issues](https://github.com/cdot65/pan-scm-cli/issues)
|
|
763
|
+
- **Discussions**: [GitHub Discussions](https://github.com/cdot65/pan-scm-cli/discussions)
|
|
751
764
|
- **Examples**: See the `examples/` directory for configuration templates
|
|
752
765
|
|
|
753
766
|
## Project Status
|
|
@@ -762,5 +775,5 @@ This project is actively maintained and uses:
|
|
|
762
775
|
|
|
763
776
|
---
|
|
764
777
|
|
|
765
|
-
_Detailed documentation is available on our [GitHub Pages documentation site](https://cdot65.github.io/pan-scm/)._
|
|
778
|
+
_Detailed documentation is available on our [GitHub Pages documentation site](https://cdot65.github.io/pan-scm-cli/)._
|
|
766
779
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Strata Cloud Manager CLI
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
[](https://github.com/cdot65/pan-scm/actions/workflows/code-quality.yml)
|
|
5
|
-
[](https://badge.fury.io/py/pan-scm)
|
|
6
|
-
[](https://pypi.org/project/pan-scm/)
|
|
7
|
-
[](https://github.com/cdot65/pan-scm/blob/main/LICENSE)
|
|
3
|
+

|
|
4
|
+
[](https://github.com/cdot65/pan-scm-cli/actions/workflows/code-quality.yml)
|
|
5
|
+
[](https://badge.fury.io/py/pan-scm-cli)
|
|
6
|
+
[](https://pypi.org/project/pan-scm-cli/)
|
|
7
|
+
[](https://github.com/cdot65/pan-scm-cli/blob/main/LICENSE)
|
|
8
8
|
|
|
9
9
|
A powerful command-line interface for managing Palo Alto Networks Strata Cloud Manager configurations. Built on the [pan-scm-sdk](https://github.com/cdot65/pan-scm-sdk), this tool provides network engineers with a consistent, user-friendly CLI experience for automating and managing SCM resources.
|
|
10
10
|
|
|
11
|
-
> **NOTE**: Please refer to the [GitHub Pages documentation site](https://cdot65.github.io/pan-scm/) for all
|
|
11
|
+
> **NOTE**: Please refer to the [GitHub Pages documentation site](https://cdot65.github.io/pan-scm-cli/) for all
|
|
12
12
|
> examples
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
@@ -30,7 +30,20 @@ A powerful command-line interface for managing Palo Alto Networks Strata Cloud M
|
|
|
30
30
|
- [Managing Security Zones](#managing-security-zones)
|
|
31
31
|
- [Managing Security Rules](#managing-security-rules)
|
|
32
32
|
- [Managing Bandwidth Allocations](#managing-bandwidth-allocations)
|
|
33
|
+
- [Managing Applications](#managing-applications)
|
|
34
|
+
- [Managing Application Groups](#managing-application-groups)
|
|
35
|
+
- [Managing Application Filters](#managing-application-filters)
|
|
36
|
+
- [Managing Dynamic User Groups](#managing-dynamic-user-groups)
|
|
37
|
+
- [Managing External Dynamic Lists](#managing-external-dynamic-lists)
|
|
38
|
+
- [Managing HIP Objects](#managing-hip-objects)
|
|
39
|
+
- [Managing HIP Profiles](#managing-hip-profiles)
|
|
40
|
+
- [Managing HTTP Server Profiles](#managing-http-server-profiles)
|
|
41
|
+
- [Managing Services](#managing-services)
|
|
42
|
+
- [Managing Service Groups](#managing-service-groups)
|
|
43
|
+
- [Managing Syslog Server Profiles](#managing-syslog-server-profiles)
|
|
44
|
+
- [Managing Tags](#managing-tags)
|
|
33
45
|
- [Bulk Operations](#bulk-operations)
|
|
46
|
+
- [Backup and Restore Operations](#backup-and-restore-operations)
|
|
34
47
|
- [Development](#development)
|
|
35
48
|
- [Setup](#setup)
|
|
36
49
|
- [Code Quality](#code-quality)
|
|
@@ -87,7 +100,7 @@ A powerful command-line interface for managing Palo Alto Networks Strata Cloud M
|
|
|
87
100
|
Install the package via pip:
|
|
88
101
|
|
|
89
102
|
```bash
|
|
90
|
-
pip install pan-scm
|
|
103
|
+
pip install pan-scm-cli
|
|
91
104
|
```
|
|
92
105
|
|
|
93
106
|
## Usage
|
|
@@ -646,8 +659,8 @@ The backup feature uses the `exact_match=True` parameter to only export objects
|
|
|
646
659
|
1. Clone the repository:
|
|
647
660
|
|
|
648
661
|
```bash
|
|
649
|
-
git clone https://github.com/cdot65/pan-scm.git
|
|
650
|
-
cd pan-scm
|
|
662
|
+
git clone https://github.com/cdot65/pan-scm-cli.git
|
|
663
|
+
cd pan-scm-cli
|
|
651
664
|
```
|
|
652
665
|
|
|
653
666
|
2. Install dependencies and pre-commit hooks:
|
|
@@ -728,9 +741,9 @@ This project is licensed under the Apache 2.0 License. See the [LICENSE](./LICEN
|
|
|
728
741
|
|
|
729
742
|
## Support
|
|
730
743
|
|
|
731
|
-
- **Documentation**: [GitHub Pages site](https://cdot65.github.io/pan-scm/)
|
|
732
|
-
- **Issues**: [GitHub Issues](https://github.com/cdot65/pan-scm/issues)
|
|
733
|
-
- **Discussions**: [GitHub Discussions](https://github.com/cdot65/pan-scm/discussions)
|
|
744
|
+
- **Documentation**: [GitHub Pages site](https://cdot65.github.io/pan-scm-cli/)
|
|
745
|
+
- **Issues**: [GitHub Issues](https://github.com/cdot65/pan-scm-cli/issues)
|
|
746
|
+
- **Discussions**: [GitHub Discussions](https://github.com/cdot65/pan-scm-cli/discussions)
|
|
734
747
|
- **Examples**: See the `examples/` directory for configuration templates
|
|
735
748
|
|
|
736
749
|
## Project Status
|
|
@@ -745,4 +758,4 @@ This project is actively maintained and uses:
|
|
|
745
758
|
|
|
746
759
|
---
|
|
747
760
|
|
|
748
|
-
_Detailed documentation is available on our [GitHub Pages documentation site](https://cdot65.github.io/pan-scm/)._
|
|
761
|
+
_Detailed documentation is available on our [GitHub Pages documentation site](https://cdot65.github.io/pan-scm-cli/)._
|
|
@@ -97,9 +97,9 @@ def get_auth_config() -> dict[str, str]:
|
|
|
97
97
|
|
|
98
98
|
# First try environment variables (PREFIX_client_id)
|
|
99
99
|
auth = {
|
|
100
|
-
"client_id": settings.get("client_id"),
|
|
101
|
-
"client_secret": settings.get("client_secret"),
|
|
102
|
-
"tsg_id": settings.get("tsg_id"),
|
|
100
|
+
"client_id": str(settings.get("client_id")),
|
|
101
|
+
"client_secret": str(settings.get("client_secret")),
|
|
102
|
+
"tsg_id": str(settings.get("tsg_id")),
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
# For backward compatibility, also check the scm_ prefixed settings
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|