CreatePrismaCloudComputeLink
This script creates a link back to the Prisma Cloud Compute instance.
- Type
- python
- Pack
- PrismaCloudCompute
Source
import urllib.parse
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def main():
args = demisto.args()
encoded_filters = urllib.parse.quote(f"imageName={args.get('imageName')}&type={args.get('type')}", safe="")
baseUrl = demisto.args().get("baseUrl")
url = f"{baseUrl}/#!/monitor/events/firewall/app/container?filters={encoded_filters}"
return_results(CommandResults(outputs={"link": url}))
if __name__ in ["__main__", "__builtin__", "builtins"]:
main()
README
This script creates a link back to the Prisma Cloud Compute instance.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| type | The type of WAAS alert. |
| imageName | The image name to investigate alerts for. |
| baseUrl | The base url of the Prisma Cloud Compute Instance (https://<prisma-ip>:<prisma-port>) |
Outputs
There are no outputs for this script.
Script Examples
Example command
!CreatePrismaCloudComputeLink imageName=dvwa type=sqli baseUrl=`https://prismcloudcomputeurl`
Context Example
{
"link": "https://prismcloudcomputeurl/#!/monitor/events/firewall/app/container?filters=imageName%3Ddvwa%26type%3Dsqli"
}
Human Readable Output
Results
link https://prismcloudcomputeurl/#!/monitor/events/firewall/app/container?filters=imageName%3Ddvwa%26type%3Dsqli