EntryWidgetPortBasedRules

Entry widget that returns the number of port based rules found by PAN-OS policy optimizer.

python · PAN-OS Policy Optimizer (beta)

Source

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401

no_apps = demisto.get(demisto.context(), "PanOS.PolicyOptimizer.NoApps", [])

data = {
    "Type": 17,
    "ContentsFormat": "number",
    "Contents": {
        "stats": len(no_apps),
        "params": {
            "layout": "horizontal",
            "name": "Port Based Rules",
            "sign": "",
            "colors": {"items": {"#00CD33": {"value": -1}, "#FF9000": {"value": 0}, "#FF1744": {"value": 3}}},
            "type": "above",
        },
    },
}

return_results(data)

README

Entry widget that returns the number of port based rules found by PAN-OS policy optimizer.

Script Data


Name Description
Script Type python3
Tags dynamic-section
Cortex XSOAR Version 5.5.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.