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 in CortexParameter | Description | Required |
---|---|---|
Source URL | The base URL of the source you wish to upload/downlowd files from. | False |
Trust any certificate (not secure) | False | |
Use system proxy settings | False | |
Incident type | False | |
Fetch incidents | False |
#
CommandsYou can execute these commands from the 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 them in the instance context.
#
Base Commandcreate-test-incident-from-file
#
InputArgument Name | Description | Required |
---|---|---|
incidents_path | The path of the 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. Will 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.
#
create-test-incident-from-raw-jsonCreates incidents from a JSON file, and stores it in the instance context.
#
Base Commandcreate-test-incident-from-raw-json
#
InputArgument Name | Description | Required |
---|---|---|
incident_raw_json | The JSON object that represents the incident. | Optional |
incident_entry_id | The entry ID of the JSON file that represents the incidents. | Optional |
attachment_paths | The paths of the files to be added to incidents as attachment. Will be added to all incidents provided in the incident_path file. For example: Packs/somePack/TestPlaybooks/attach.eml. | Optional |
attachment_entry_ids | The enry IDs of the incident attachments. | Optional |
#
Context OutputThere is no context output for this command.
#
Command example!create-test-incident-from-raw-json incident_entry_id="12@12"
#
Human Readable OutputLoaded 1 incidents from file.
!create-test-incident-from-raw-json incident_raw_json="{'name': 'test_incident'}"
#
Human Readable OutputLoaded 1 incidents from file.