UnpublishThreatIntelReport

Sets a Threat Intel Report as unpublished.

python · Threat Intel Reports (BETA)

Source

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


def unpublish():
    object_id = demisto.getArg("object.id")

    execute_command(
        "setThreatIntelReport",
        {
            "id": object_id,
            "xsoarReadOnlyRoles": "",
            "reportstatus": "Draft",
            "published": "",
        },
    )

    demisto.results("ok")


if __name__ in ("__main__", "__builtin__", "builtins"):
    unpublish()

README

Sets a Threat Intel Report as unpublished.

Script Data


Name Description
Script Type python3
Tags threatIntelReport-action-button
Cortex XSOAR Version 6.5.0

Inputs


Argument Name Description
object The Threat Intel Report object to unpublish.

Outputs


There are no outputs for this script.