.. _splunk.es.splunk_response_plan_execution_module:
****************************************
splunk.es.splunk_response_plan_execution
****************************************
**Apply response plans to investigations and manage tasks**
Version added: 5.1.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module applies or removes response plans from Splunk Enterprise Security investigations.
- It also manages task lifecycle within applied response plans (start, end, change owner).
- The ``response_plan`` parameter accepts either a UUID or a name.
- When ``state=present``, the response plan is applied to the investigation.
- When ``state=absent``, the response plan is removed from the investigation.
- Use the ``tasks`` parameter to manage individual task statuses and owners within the applied plan.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
api_app
string
|
Default:
"missioncontrol"
|
The app portion of the Splunk API path.
Override this if your environment uses a different app name.
|
|
api_namespace
string
|
Default:
"servicesNS"
|
The namespace portion of the Splunk API path.
Override this if your environment uses a different namespace.
|
|
api_user
string
|
Default:
"nobody"
|
The user portion of the Splunk API path.
Override this if your environment requires a different user context.
|
|
investigation_ref_id
string
/ required
|
|
The investigation UUID to apply or manage response plans.
This is the unique identifier of the investigation in Splunk ES.
|
|
response_plan
string
/ required
|
|
The response plan template to apply or remove.
Accepts either a UUID (e.g., "2dc5530d-8bb0-4a4f-9b53-74745bf4ea6a") or a name (e.g., "Incident Response Plan").
If UUID format is detected, it is used directly as the template ID.
If not a UUID, the module performs an API lookup to resolve the name to an ID.
|
|
state
string
|
Choices:
present ←
- absent
|
The desired state of the response plan on the investigation.
Use present to apply the response plan to the investigation or update the tasks.
Use absent to remove the response plan from the investigation.
|
|
tasks
list
/ elements=dictionary
|
|
List of tasks to manage within the applied response plan.
Each task is identified by phase name and task name.
You can set the task status (started/ended) and/or change the owner.
Tasks are only managed when state=present.
|
|
owner
string
|
|
The owner/assignee of the task.
Use admin for the administrator user.
Use unassigned to remove the current owner or leave unassigned.
|
|
phase_name
string
/ required
|
|
The name of the phase containing the task.
Used to look up the phase ID within the applied response plan.
|
|
status
string
|
Choices:
- started
- ended
- reopened
|
The desired status of the task.
Use started to mark the task as in progress.
Use ended to mark the task as completed.
Use reopened to reopen a completed task.
|
|
task_name
string
/ required
|
|
The name of the task to manage.
Used to look up the task ID within the phase.
|