getDeprecatedPlaybooks
Get the list of deprecated playbooks.
python · System Diagnostics and Health Check
Details
| ID | getDeprecatedPlaybooks |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | statusreview |
README
Get the list of deprecated playbooks
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | statusreview |
Inputs
There are no inputs for this script.
Outputs
| Path | Description | Type |
|---|---|---|
| DeprecatedPlaybooks | Unknown |
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 payload = {"query": "deprecated:T"} res = demisto.executeCommand("core-api-post", {"uri": "playbook/search", "body": json.dumps(payload)})[0]["Contents"]["response"] if not res["playbooks"]: res["playbooks"] = [] wList = [] for item in res["playbooks"]: wList.append({"Name": item["name"]}) md = tableToMarkdown("List of Deprecated Playbooks", wList) return_results( {"Contents": wList, "ContentsFormat": formats["text"], "HumanReadable": md, "EntryContext": {"DeprecatedPlaybooks": [wList]}} )