.. _splunk.es.splunk_response_plan_info_module: *********************************** splunk.es.splunk_response_plan_info *********************************** **Gather information about Splunk Enterprise Security response plans** Version added: 5.1.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module allows for querying information about Splunk Enterprise Security response plans. - Use this module to retrieve response plan configurations without making changes. - Query by ``name`` to filter response plans by exact name match. - If ``name`` is not specified, returns all response plans. - Returns complete response plan structure including all IDs (response plan ID, phase IDs, task IDs). Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
api_app
string
Default:
"missioncontrol"
The app portion of the Splunk API path for the response templates endpoint.
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.
limit
integer
Maximum number of response plans to return.
If not specified, returns all matching response plans.
Useful for limiting results when querying large numbers of response plans.
name
string
Name to filter response plans.
Returns the response plan with an exact name match.
If not specified, returns all response plans.

Examples -------- .. code-block:: yaml - name: Query all response plans splunk.es.splunk_response_plan_info: register: all_plans - name: Query specific response plan by name splunk.es.splunk_response_plan_info: name: "Incident Response Plan" register: result - name: Query response plans with custom API path splunk.es.splunk_response_plan_info: api_namespace: "{{ es_namespace | default('servicesNS') }}" api_user: "{{ es_user | default('nobody') }}" api_app: "{{ es_app | default('missioncontrol') }}" register: custom_plans Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
response_plans
list / elements=dictionary
always
List of response plans matching the query

Sample:
[{'id': 'abc123-def456-ghi789', 'template_id': 'c4522c17-7f27-4569-a130-80ac31c46de8', 'name': 'Incident Response Plan', 'description': 'Standard incident response procedure', 'template_status': 'published', 'phases': [{'id': 'phase-uuid-001', 'name': 'Investigation', 'tasks': [{'id': 'task-uuid-001', 'name': 'Initial Triage', 'description': 'Perform initial assessment', 'is_note_required': True, 'owner': 'admin', 'searches': [{'name': 'Access Over Time', 'description': 'Check access patterns', 'spl': '| tstats count from datamodel=Authentication'}]}]}]}]
 
description
string
Description of the response plan

 
id
string
The unique ID of the response plan

 
name
string
Name of the response plan

 
phases
list / elements=dictionary
List of phases in the response plan

   
id
string
The unique ID of the phase

   
name
string
Name of the phase

   
tasks
list / elements=dictionary
List of tasks in the phase

     
description
string
Description of the task

     
id
string
The unique ID of the task

     
is_note_required
boolean
Whether a note is required when completing the task

     
name
string
Name of the task

     
owner
string
Owner of the task

     
searches
list / elements=dictionary
List of saved searches attached to the task

       
description
string
Description of the search

       
name
string
Name of the search

       
spl
string
The SPL query

 
template_id
string
when available
The template ID of the response plan (used for investigation_type associations)

 
template_status
string
Status of the response plan template (published or draft)



Status ------ Authors ~~~~~~~ - Ron Gershburg (@rgershbu)