diff --git a/prismacloud/api/pccs/_code_policies.py b/prismacloud/api/pccs/_code_policies.py index dafc308..0cf7fe3 100644 --- a/prismacloud/api/pccs/_code_policies.py +++ b/prismacloud/api/pccs/_code_policies.py @@ -4,6 +4,11 @@ class CodePoliciesPrismaCloudAPIPCCSMixin: """ Prisma Cloud Code Security API Code Policies Endpoints Class """ - - def suppressions_justifications_list_read(self, policy_id): - 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: + # Fetch details for a specific policy + return self.execute_code_security('GET', 'code/api/v2/policies/%s' % policy_id) + else: + # Fetch a list of all policies if no specific policy_id is provided + return self.execute_code_security('GET', 'code/api/v2/policies') diff --git a/prismacloud/api/version.py b/prismacloud/api/version.py index 9e74770..c846aaa 100644 --- a/prismacloud/api/version.py +++ b/prismacloud/api/version.py @@ -1 +1 @@ -version = "5.2.13" +version = "5.2.14"