EntryWidgetUnusedRules
Entry widget that returns the number of unused 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.UnusedRules", []) data = { "Type": 17, "ContentsFormat": "number", "Contents": { "stats": len(no_apps), "params": { "layout": "horizontal", "name": "Unused Rules", "sign": "", "colors": {"items": {"#00CD33": {"value": -1}, "#FF9000": {"value": 0}, "#FF1744": {"value": 3}}}, "type": "above", }, }, } demisto.results(data)
README
Entry widget that returns the number of unused 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.