getContentPackStatus
Get the count of Marketplace content packs update status.
python · System Diagnostics and Health Check
Details
| ID | getContentPackStatus |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | statusreview widget |
README
Get the count of Marketplace content packs update status.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | statusreview, widget |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 res = demisto.executeCommand("core-api-get", {"uri": "contentpacks/installed-expired"})[0]["Contents"]["response"] counter1 = 0 counter2 = 0 for item in res: if item["updateAvailable"] is True: counter1 += 1 if item["deprecated"] is True: counter2 += 1 wList = [] wList.append({"Update Available packs": counter1, "Deprecated packs": counter2}) return_results({"total": len(wList), "data": wList})