pan-scm-sdk: Python SDK for Palo Alto Networks Strata Cloud Manager
Manage 80+ Strata Cloud Manager resource types — addresses, security rules, NAT rules, network interfaces, and more — through a simple, unified Python client with full CRUD support, Pydantic validation, and automatic pagination.
Installation
pip install pan-scm-sdk
Requires Python 3.10+.
Quick Start
from scm.client import Scm
client = Scm(
client_id="your_client_id",
client_secret="your_client_secret",
tsg_id="your_tsg_id",
)
# Create an address object
client.address.create({
"name": "web-server",
"ip_netmask": "10.0.1.100/32",
"folder": "Texas",
})
# List addresses
for addr in client.address.list(folder="Texas"):
print(addr.name)
Explore the full API across all resource types in the Services documentation.
Documentation Guide
Services
Service classes for performing CRUD operations on Strata Cloud Manager resources. Use when you need method signatures, usage examples, and filtering options.
Data Models
Pydantic schemas that define validation rules, required vs optional fields, and allowed values. Use when you need to pre-validate configurations before API calls.
User Guide
Authentication options, TLS configuration, commit workflows, and detailed walkthroughs for common tasks.
Contributing
Contributions are welcome. Visit the Contributing page for guidelines.
License
Apache 2.0 — see the License page for details.