IBM QRadar SOAR

IBM QRadar

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

resilient-circutis codegen not able to generate template resilient python code

  • 1.  resilient-circutis codegen not able to generate template resilient python code

    Posted Thu July 16, 2020 10:28 PM

    Trying to run resilient-circutis codegen to automate the generation of Python integration code,

    resilient-circuits codegen -p calculator -m fn_calc -f calc_sum --workflow calc_sum --rule "calc: sum"


    It failed to generate the template code in python (tox.ini, setup.py, __init__.py, funct_calc_sum.py, and etc) with the following error.

    resilient.co3.SimpleHTTPException: Internal Server Error: {"success":false,"title":null,"message":"Internal Server Error","hints":[],"error_code":"generic"}


    And template code can`t be generated as what it is instructed in the IBM security learning academy`s resilient tutorial video (Resilient Developer's Corner - Integration First Steps - https://www.securitylearningacademy.com/course/view.php?id=4644 ) .
    [Taken from the video tutorial]


    Could someone could give me some clues to go over this problem??

    Reference: Variable Settings on the function of IBM Resilient

    References for Resilience `s package, function, workflow, and rules (Under Resilient web console)

    resilient-circuits codegen -p calculator -m fn_calc -f calc_sum --workflow calc_sum --rule "calc: sum"

    message destination : -m fn_calc

    Funcitons: -f calc_cum

    Workflow: --workflow calc_sum

    Rule: --rule "calc: sum"

     





    ------------------------------
    Ivan To
    ------------------------------


  • 2.  RE: resilient-circutis codegen not able to generate template resilient python code

    Posted Fri July 17, 2020 09:32 AM
    Hi resilient-cicruits codegen capability has been depricated and this functionality can now be found in 'resilient-sdk'.
    Use pip install resilient-sdk  ...

    ]# resilient-sdk --help
    usage:
    $ resilient-sdk <subcommand> ...
    $ resilient-sdk -v <subcommand> ...
    $ resilient-sdk -h


    Python SDK for developing Resilient Apps

    optional arguments:
    -h, --help show this help message and exit
    -v, --verbose Set the log level to DEBUG

    subcommands:
    one of these subcommands must be provided


    codegen Generate boilerplate code to start developing an app
    docgen Generate documentation for an app
    extract Extract data in order to publish a .res file
    package Package an integration into a Resilient app

    For support, please visit ibm.biz/resilientcommunity

    ------------------------------
    John Quirke
    ------------------------------