Repository navigation
Releases: ancoleman/insights-sdk-cli
Releases · ancoleman/insights-sdk-cli
Release list
v0.3.1 — EB users, other users, generic sessions
Added
get_eb_users()— Enterprise Browser user listget_other_users()— Other/host user listget_user_sessions(user_type)— Generic session list for any user type (agent, agentless, branch, other)
Coverage Summary
SDK now has 52 public methods covering all working Insights 3.0 API endpoints:
| Category | Status | Methods |
|---|---|---|
| Agent Users | Strong | 12 methods |
| Branch Users | Strong | via generic methods |
| Agentless Users | Strong | list + sessions + generics |
| Enterprise Browser | Strong | list + count + histogram + active |
| Other Users | Strong | list + sessions + generics |
| Applications | Strong | 9 methods |
| Accelerated Apps | Strong | 7 methods |
| Sites | Strong | 5 methods |
| PAB Security | Strong | 6 methods |
| Monitoring | Good | 4 methods (user list/count are known API limitations) |
| Export | Good | 2 methods |
Mobile users = agent type (no separate API). Monitored user list/count = known API limitation (DATA10003).
Install
pip install pan-insights-sdk==0.3.1Full Changelog: v0.3.0...v0.3.1
v0.3.0 — Full SDK/CLI feature parity
Added — 21 new SDK methods
SDK now has 49 public methods (up from 28), matching every CLI command.
User Methods
get_active_user_count()/get_active_users()— active user count/listget_entity_count()— connected entity countget_client_version_distribution()— agent version distributionget_unique_device_connections()— unique device connectionsget_current_user_count()— current connected countget_device_count_histogram()— device count over time
Application Methods
get_app_bandwidth(app_name)— per-app bandwidth histogramget_app_data_transfer_by_destination()— transfer by destination
Accelerated Application Methods
get_accelerated_app_count()/get_accelerated_user_count()get_accelerated_data_transfer(per_app=True/False)get_accelerated_response_time(per_app=True/False)get_accelerated_histogram(metric)— throughput/packet-loss/rtt/boost
Monitoring Methods
get_monitored_device_count()/get_monitored_device_count_histogram()
Security (PAB) Methods
get_pab_access_events_breakdown()/get_pab_data_events_blocked()/get_pab_data_events_breakdown()
Install
pip install pan-insights-sdk==0.3.0Full Changelog: v0.2.3...v0.3.0
v0.2.3 — Fix PAB blocked events endpoint path
Fixed
get_pab_access_events_blocked()— was hittingquery/pab/access_events_blockedinstead ofquery/applications/pab/access_events_blocked, causing 400 errors- CLI
security access --blocked— same incorrect endpoint path as the SDK method
Install
pip install pan-insights-sdk==0.2.3Full Changelog: v0.2.2...v0.2.3
v0.2.2 — Fix SDK endpoint paths and histogram config
Fixed
get_agent_sessions()— was hittingquery/users/other/session_listinstead ofquery/users/agent/session_list, returning wrong user type's sessionsget_risky_user_count()— was hittingquery/agent/risky_user_count(missingusers/prefix) for agent type, causing 400 errorsget_user_count_histogram()— was missing requiredhistogramconfig in request body and using wrong agent endpoint, causing 400 errorsget_site_bandwidth()— was missing requiredhistogramconfig in request body, causing 400 errors for all SDK callers (CLI worked because it added histogram config directly)
Changed
get_user_count_histogram()andget_site_bandwidth()now accept an optionalintervalparameter (default: 30 minutes) for histogram granularity
Install
pip install pan-insights-sdk==0.2.2Full Changelog: v0.2.1...v0.2.2
v0.2.1
v0.2.0
What's Changed
Added
-
Docker Support
- Multi-stage
Dockerfilewith Python 3.12-slim base (~150MB image) Dockerfile.devfor running tests in containersdocker-compose.ymlfor easy orchestration- Security hardening: non-root user, read-only filesystem, dropped capabilities
- Multi-stage
-
Makefile
- Development:
make install,make dev,make test,make lint,make format - Docker:
make build,make run ARGS='...',make shell - Release:
make dist,make publish,make release VERSION=x.y.z
- Development:
-
PyPI Publishing
- GitHub Action for automated publishing on release
- GitHub Action for CI tests on push/PR
- Trusted publishing support (no API tokens required)
-
Documentation
- New
docs/installation.mdwith pip, Docker, source, and CI/CD setup - Updated README with all installation methods
- New
-
Testing
- 26 Docker configuration tests
Installation
pip install insights-sdkOr with Docker:
docker build -t insights .
docker run --rm insights --helpFull Changelog: v0.1.0...v0.2.0