Skip to content

Commit

Permalink
Prisma Cloud Server URL additional info & error (#32056)
Browse files Browse the repository at this point in the history
* add informative error

* add informative additionalinfo

* update RN

* pass build

* Update Packs/PrismaCloud/ReleaseNotes/4_2_16.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* dockerimage

---------

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
  • Loading branch information
BEAdi and ShirleyDenkberg committed Jan 10, 2024
1 parent 060c2db commit d7de665
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Packs/PrismaCloud/Integrations/PrismaCloudV2/PrismaCloudV2.py
Expand Up @@ -2236,6 +2236,9 @@ def main() -> None:
error_msg = str(e)
if hasattr(e, 'res'):
error_msg += get_response_status_header(e.res) # type: ignore[attr-defined]
if hasattr(e.res, 'status_code') and e.res.status_code == 401: # type: ignore[attr-defined]
error_msg = 'Authentication failed. ' \
'Check that the Server URL parameter is correct and validate your credentials.\n' + error_msg
return_error(error_msg, error=e)


Expand Down
Expand Up @@ -9,7 +9,8 @@ display: Prisma Cloud v2
category: Network Security
description: Prisma Cloud secures infrastructure, workloads and applications, across the entire cloud-native technology stack.
configuration:
- name: url
- additionalinfo: 'Prisma Cloud service tenant admin console URL. The URL for the Prisma Cloud service varies depending on the cluster on which your tenant is deployed. For more information see: https://pan.dev/prisma-cloud/api/cspm/api-urls/.'
name: url
display: Server URL
defaultvalue: https://api.prismacloud.io/
type: 0
Expand Down Expand Up @@ -111,7 +112,7 @@ script:
script: ''
type: python
subtype: python3
dockerimage: demisto/python3:3.10.13.83255
dockerimage: demisto/python3:3.10.13.84405
isfetch: true
isremotesyncin: true
isremotesyncout: true
Expand Down
5 changes: 5 additions & 0 deletions Packs/PrismaCloud/ReleaseNotes/4_2_16.md
@@ -0,0 +1,5 @@

#### Integrations
##### Prisma Cloud v2
- Updated the documentation and errors regarding the *Server URL* parameter.
- Updated the Docker image to: *demisto/python3:3.10.13.84405*.
2 changes: 1 addition & 1 deletion Packs/PrismaCloud/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Prisma Cloud by Palo Alto Networks",
"description": "Automate and unify security incident response across your cloud environments, while still giving a degree of control to dedicated cloud teams.",
"support": "xsoar",
"currentVersion": "4.2.15",
"currentVersion": "4.2.16",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit d7de665

Please sign in to comment.