Create Test Incidents
Developer Tools Pack.#
This Integration is part of theSupported versions
Supported Cortex XSOAR versions: 6.1.0 and later.
CreateIncidents fetches incident created manually.
#
Configure Create Test Incidents on Cortex XSOARNavigate to Settings > Integrations > Servers & Services.
Search for Create Test Incidents.
Click Add instance to create and configure a new integration instance.
Parameter Description Required Source URL The base url of the source you wish to upload/ downlowd files from. True Trust any certificate (not secure) False Use system proxy settings False Incident type False Fetch incidents False Click Test to validate the URLs, token, and connection.
#
CommandsYou can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
create-test-incident-from-fileCreates incidents from json files provided, and stores it in the instance context.
#
Base Commandcreate-test-incident-from-file
#
InputArgument Name | Description | Required |
---|---|---|
incidents_path | The path of json file containing incidents. Can contain one incident or a list of incidents. For example: Packs/somePack/TestPlaybooks/examples.json. | Required |
attachment_paths | The paths of the files to be added to incidents as attachment. Would be added to all incidents provided in the incident_path file. For example: Packs/somePack/TestPlaybooks/attach.eml. | Optional |
#
Context OutputThere is no context output for this command.
#
Command example!create-test-incident-from-file incidents_path=Packs/DeveloperTools/Integrations/CreateIncidents/test_data/incidents.json attachment_path="Packs/DeveloperTools/Integrations/CreateIncidents/test_data/YOU HAVE WON 10000$.eml"
#
Human Readable OutputLoaded 1 incidents from file.