XSOAR-Web-Server
Xsoar-web-server Pack.#
This Integration is part of theSupported versions
Supported Cortex XSOAR versions: 6.5.0 and later.
This is a simple web-server that as of now, supports handling configurable user responses (like Yes/No/Maybe) and data collection tasks that can be used to fetch key value pairs. What makes it different from Data collection tasks is that the URL to perform a certain action is predictable and written to the incident context when an action is setup. This URL can be inserted to for example: an HTML email. User clicks are recorded in the integration context and can be polled by Scheduled Commands/ Generic Polling. This integration was integrated and tested with version 1.0 of XSOAR-Web-Server
#
Configure XSOAR-Web-Server in CortexParameter | Description | Required |
---|---|---|
Incident type | False | |
Long running instance | False | |
Server Listening Port | Runs the service on this port from within Cortex XSOAR. Requires a unique port for each long-running integration instance. Do not use the same port for multiple instances. Note: If you click the test button more than once, a failure may occur mistakenly indicating that the port is already in use. (For Cortex XSOAR 8 and Cortex XSIAM) If using an engine, you must enter a Listen Port. If not using an engine, do not enter a Listen Port and an unused port will automatically be generated when the instance is saved. | True |
XSOAR external URL | The URL on which the user should send the response to. | True |
#
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.
#
xsoar-ws-setup-simple-actionsetup the web server to handle URL clicks for each action specified from single or multiple recipients
#
Base Commandxsoar-ws-setup-simple-action
#
InputArgument Name | Description | Required |
---|---|---|
actions | Comma-separated possible values for each action. Mandatory for get requests. | Required |
emailaddresses | Comma-separated email addresses of the recipients. | Required |
userstring | User defined string that has to be set from the playbook. This is used to differentiate between multiple jobs running on the same incident. | Required |
htmltemplate | Template to construct the HTML mail. | |
xsoarproxy | Used to specify what endpoint to submit the responses. If set to false, the HTML template will have the endpoint containing the custom port. Possible values are: true, false. Default is true. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
WS-ActionDetails | unknown | The current status of the action's configuration details. |
WS-ActionDetails.job_uuid | unknown | Subset of action details, added for ease of configuration in playbooks. |
#
xsoar-ws-clear-cacheClear the backend storage containing all session information.
#
Base Commandxsoar-ws-clear-cache
#
InputArgument Name | Description | Required |
---|
#
Context OutputThere is no context output for this command.
#
xsoar-ws-show-cacheShow the details of all the setup actions from the backend.
#
Base Commandxsoar-ws-show-cache
#
InputArgument Name | Description | Required |
---|
#
Context OutputThere is no context output for this command.
#
xsoar-ws-remove-actionRemove a certain job from the backend.
#
Base Commandxsoar-ws-remove-action
#
InputArgument Name | Description | Required |
---|---|---|
uuid | Job's UUID. | Required |
#
Context OutputThere is no context output for this command.
#
xsoar-ws-get-action-statusGets the current status of an action that was setup. Used to track if the user responded to the action.
#
Base Commandxsoar-ws-get-action-status
#
InputArgument Name | Description | Required |
---|---|---|
uuid | Job's UUID. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
WS-ActionStatus | unknown | The current status of the action with some configuration data. Is used for polling the status. |
WS-ActionStatus.link_tracker | unknown | Subset of action status. Tracked here to make it easier for configuring playbooks. |
#
xsoar-ws-set-job-completeSet a job to complete. Usually called from the automation that is polling the result.
#
Base Commandxsoar-ws-set-job-complete
#
InputArgument Name | Description | Required |
---|---|---|
uuid | Job's uuid. | Required |
#
Context OutputThere is no context output for this command.
#
xsoar-ws-setup-form-submissionSetup a form submission job that can take multiple values from multiple users.
#
Base Commandxsoar-ws-setup-form-submission
#
InputArgument Name | Description | Required |
---|---|---|
emailaddresses | Comma-separated email addresses of the recipients. | Required |
userstring | Optional user string that can be set from the playbook. Can be used to differentiate between multiple jobs running on the same incident. | Optional |
htmltemplate | The template to build the email content. | Required |
xsoarproxy | Used to specify what endpoint to submit the responses. If set to false, the HTML template will have the endpoint containing the custom port. Default is true. | Optional |
#
Context OutputThere is no context output for this command.