CuckooTaskStatus

Deprecated. Use the 'cuckoo-view-task' command instead.

Type
python
Pack
CuckooSandbox

Source

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


def main():
    res = demisto.executeCommand("cuckoo-view-task", {"id": demisto.args()["taskID"]})
    if isError(res[0]):
        demisto.results(res)
    else:
        data = demisto.get(res[0], 'Contents.task')
        if data:
            data = {k: formatCell(data[k]) for k in data}
            demisto.results({'ContentsFormat': formats['table'], 'Type': entryTypes['note'], 'Contents': data})
        else:
            demisto.results(res)


if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()

README

Deprecated. Use the ‘cuckoo-view-task’ command instead.

Checks the current status of a task in Cuckoo sandbox.

Script Data


Name Description
Script Type python
Tags cuckoo

Dependencies


This script uses the following commands and scripts.

Inputs


Argument Name Description
taskID The ID of the task to check.

Outputs


There are no outputs for this script.