Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b850450
Update _registry.py with registry_download
trolldbois Jul 30, 2024
19fc200
Update _containers.py with containers_download
trolldbois Jul 30, 2024
ec69a4f
Update _defenders.py with defenders_download
trolldbois Jul 30, 2024
89f1069
Update _scans.py with scans_download
trolldbois Jul 30, 2024
9a1e218
Update _stats.py to fix typo
trolldbois Jul 30, 2024
7bff184
Update _cloud.py for paginated cloud_discovery_entities
trolldbois Dec 12, 2024
390fdc7
use a requests session and a Retry session adapter.
Feb 20, 2025
e10cc34
explicit parameters
Feb 20, 2025
66bb5cb
enforce Retry on status
Feb 20, 2025
5d95033
remove logging
Feb 20, 2025
a4768ac
try harder on token expiration
Feb 20, 2025
316e793
better logging
Feb 20, 2025
5bf63a6
more api
Feb 21, 2025
8b95b95
push new version
Feb 21, 2025
aa30046
bugfix download methods
Feb 24, 2025
76d1c5f
redo authentication methods
Mar 3, 2025
0bf0c33
split paginated from single results
Mar 3, 2025
cfb75c3
split execute and execute_paginated from single function, to allow fo…
Mar 4, 2025
6ac92f7
Trying to use git-based versioning
Mar 4, 2025
3d97f14
simplify package
Mar 4, 2025
fa2c9fe
revert debug
Mar 4, 2025
24dffc6
make versioning work
Mar 4, 2025
971ced1
change package name
Mar 4, 2025
dd4a8ff
bugfixes
Mar 4, 2025
2068665
Cleanup
Mar 10, 2025
cb9853f
add query parameters to cloud_discovery API
Mar 21, 2025
94f17fa
add background jobs endpoints
Mar 24, 2025
081db1f
add cspm collections
Apr 11, 2025
69e0c14
Various update to parameters, and avoiding SystemExit
May 6, 2025
53c85ed
Update params on cloud account groups
May 9, 2025
9a7df9e
Add some endpoints
Jun 13, 2025
effc266
Add an endpoint for account status
Jul 9, 2025
4a776d0
Add an endpoints for inventory
Jul 14, 2025
fde67ad
Add an endpoints for alert
Sep 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 39 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
# Python SDK for the Prisma Cloud APIs

This project includes a Python SDK for the Prisma Cloud APIs (CSPM, CWPP, and CCS) in the form of a Python package.
This is a Python SDK for the Prisma Cloud APIs (CSPM, CWPP, and PCCS) in the form of a Python package.

This package is a fork of [prismacloud-api-python](https://github.com/PaloAltoNetworks/prismacloud-api-python), package [prismacloud-api](https://pypi.org/project/prismacloud-api), forked at version 5.2.24.

This package is not maintained by Prisma Cloud SEs.

It also includes reference scripts that utilize this SDK.

Major changes with Version 5.0:

* Command-line argument and configuration file changes.

## Table of Contents

* [Setup](#Setup)
* [Installation](#Installation)
* [Support](#Support)
* [References](#References)
* [Changelog](#Changelog)


## Setup
## Installation

Install the SDK via `pip3`:
Install the SDK via `pip`:

```
pip3 install prismacloud-api
pip3 install prismacloudapi
```

Please refer to [PyPI](https://pypi.org/project/prismacloud-api) for details.
Please refer to [PyPI](https://pypi.org/project/prismacloudapi) for details.

### Example Scripts

Expand Down Expand Up @@ -101,5 +106,29 @@ settings = {

## Support

This project has been developed by members of the Prisma Cloud CS and SE teams, it is not Supported by Palo Alto Networks.
Nevertheless, the maintainers will make a best-effort to address issues, and (of course) contributors are encouraged to submit issues and pull requests.
This package is not maintained by Prisma Cloud SEs or any Palo Alto Networks employees.

The maintainers will make a best-effort to address issues, and (of course) contributors are encouraged to submit issues and pull requests.


## References

Prisma Cloud APIs:

https://prisma.pan.dev/api/cloud/

Access Keys:

https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin/manage-prisma-cloud-administrators/create-access-keys.html

Permissions:

https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin/manage-prisma-cloud-administrators/prisma-cloud-admin-permissions.html

## Changelog

2025-03 Major changes with Version 5.2.28:
* Leverage iterator construct for large dataset

2024-01 Major changes with Version 5.0:
* Command-line argument and configuration file changes.
40 changes: 0 additions & 40 deletions prismacloud/api/README.md

This file was deleted.

Loading