We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 632a1b4 + fbcf4df commit 2db7734Copy full SHA for 2db7734
prismacloud/api/pccs/_code_policies.py
@@ -4,6 +4,11 @@
4
5
class CodePoliciesPrismaCloudAPIPCCSMixin:
6
""" Prisma Cloud Code Security API Code Policies Endpoints Class """
7
-
8
- def suppressions_justifications_list_read(self, policy_id):
9
- return self.execute_code_security('GET', 'code/api/v2/policies/%s' % policy_id)
+
+ def code_policies_list_read(self, policy_id=None):
+ if policy_id:
10
+ # Fetch details for a specific policy
11
+ return self.execute_code_security('GET', 'code/api/v2/policies/%s' % policy_id)
12
+ else:
13
+ # Fetch a list of all policies if no specific policy_id is provided
14
+ return self.execute_code_security('GET', 'code/api/v2/policies')
prismacloud/api/version.py
@@ -1 +1 @@
1
-version = "5.2.13"
+version = "5.2.14"
0 commit comments