getDeprecatedIntegrations
Get the list of deprecated integrations.
python · System Diagnostics and Health Check
Details
| ID | getDeprecatedIntegrations |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | statusreview |
README
Get the list of deprecated integrations
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | statusreview |
Inputs
There are no inputs for this script.
Outputs
| Path | Description | Type |
|---|---|---|
| DeprecatedContentPacks | Unknown |
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 res = demisto.executeCommand("core-api-get", {"uri": "contentpacks/installed-expired"})[0]["Contents"]["response"] wList = [] for item in res: if item["deprecated"] is True: wList.append({"Name": item["name"]}) if item["integrations"] and len(item["integrations"]) > 0: for val in item["integrations"]: if "Deprecated" in val["name"]: wList.append({"Name": val["name"]}) md = tableToMarkdown("List of Deprecated Integrations", wList) return_results( { "Contents": wList, "ContentsFormat": formats["text"], "HumanReadable": md, "EntryContext": {"DeprecatedContentPacks": [wList]}, } )