IbmUploadAttachment
Use this script to upload an attachment to an IBM QRadar SOAR incident. This script should be run within an incident.
python · IBM Security QRadar SOAR
Details
| ID | IbmUploadAttachment |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
README
Use this script to upload an attachment to an IBM QRadar SOAR incident. This script should be run within an incident.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.8.0 |
Dependencies
This script uses the following commands and scripts.
- rs-upload-incident-attachment
- IBM Resilient Systems
Inputs
| Argument Name | Description |
|---|---|
| entry_id | EntryID of the file to upload. |
Outputs
There are no outputs for this script.
import demistomock as demisto from IbmUploadAttachment import upload_attachment def test_upload_attachment_success(mocker): mocker.patch.object(demisto, "incident", return_value={"dbotMirrorId": "123"}) mocker.patch.object(demisto, "executeCommand", return_value=[{"HumanReadable": "Attachment uploaded successfully"}]) args = { "entry_id": "TEST ENTRY ID", } result = upload_attachment(args) assert result.readable_output == "Attachment uploaded successfully"