Debian Codegraph @

ansible_collections/splunk/es/docs/splunk.es.splunk_response_plan_execution_info_module.rst

raw
1 .. _splunk.es.splunk_response_plan_execution_info_module:
2
3
4 *********************************************
5 splunk.es.splunk_response_plan_execution_info
6 *********************************************
7
8 **Gather information about applied response plans on an investigation**
9
10
11 Version added: 5.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module retrieves information about response plans applied to a Splunk Enterprise Security investigation.
21 - Returns the complete structure of applied response plans including phases and task statuses.
22 - Use this module to query the current state of response plan execution without making changes.
23
24
25
26
27 Parameters
28 ----------
29
30 .. raw:: html
31
32 <table border=0 cellpadding=0 class="documentation-table">
33 <tr>
34 <th colspan="1">Parameter</th>
35 <th>Choices/<font color="blue">Defaults</font></th>
36 <th width="100%">Comments</th>
37 </tr>
38 <tr>
39 <td colspan="1">
40 <div class="ansibleOptionAnchor" id="parameter-"></div>
41 <b>api_app</b>
42 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
43 <div style="font-size: small">
44 <span style="color: purple">string</span>
45 </div>
46 </td>
47 <td>
48 <b>Default:</b><br/><div style="color: blue">"missioncontrol"</div>
49 </td>
50 <td>
51 <div>The app portion of the Splunk API path.</div>
52 <div>Override this if your environment uses a different app name.</div>
53 </td>
54 </tr>
55 <tr>
56 <td colspan="1">
57 <div class="ansibleOptionAnchor" id="parameter-"></div>
58 <b>api_namespace</b>
59 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
60 <div style="font-size: small">
61 <span style="color: purple">string</span>
62 </div>
63 </td>
64 <td>
65 <b>Default:</b><br/><div style="color: blue">"servicesNS"</div>
66 </td>
67 <td>
68 <div>The namespace portion of the Splunk API path.</div>
69 <div>Override this if your environment uses a different namespace.</div>
70 </td>
71 </tr>
72 <tr>
73 <td colspan="1">
74 <div class="ansibleOptionAnchor" id="parameter-"></div>
75 <b>api_user</b>
76 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
77 <div style="font-size: small">
78 <span style="color: purple">string</span>
79 </div>
80 </td>
81 <td>
82 <b>Default:</b><br/><div style="color: blue">"nobody"</div>
83 </td>
84 <td>
85 <div>The user portion of the Splunk API path.</div>
86 <div>Override this if your environment requires a different user context.</div>
87 </td>
88 </tr>
89 <tr>
90 <td colspan="1">
91 <div class="ansibleOptionAnchor" id="parameter-"></div>
92 <b>investigation_ref_id</b>
93 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
94 <div style="font-size: small">
95 <span style="color: purple">string</span>
96 / <span style="color: red">required</span>
97 </div>
98 </td>
99 <td>
100 </td>
101 <td>
102 <div>The investigation UUID to query for applied response plans.</div>
103 <div>This is the unique identifier of the investigation (incident).</div>
104 </td>
105 </tr>
106 </table>
107 <br/>
108
109
110
111
112 Examples
113 --------
114
115 .. code-block:: yaml
116
117 - name: Get applied response plans for an investigation
118 splunk.es.splunk_response_plan_execution_info:
119 investigation_ref_id: "590afa9c-23d5-4377-b909-cd2cfa1bc0f1"
120 register: result
121
122 - name: Display applied response plans
123 debug:
124 var: result.applied_response_plans
125
126 - name: Query with custom API path
127 splunk.es.splunk_response_plan_execution_info:
128 investigation_ref_id: "590afa9c-23d5-4377-b909-cd2cfa1bc0f1"
129 api_namespace: "{{ es_namespace | default('servicesNS') }}"
130 api_user: "{{ es_user | default('nobody') }}"
131 api_app: "{{ es_app | default('missioncontrol') }}"
132 register: custom_result
133
134
135
136 Return Values
137 -------------
138 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
139
140 .. raw:: html
141
142 <table border=0 cellpadding=0 class="documentation-table">
143 <tr>
144 <th colspan="4">Key</th>
145 <th>Returned</th>
146 <th width="100%">Description</th>
147 </tr>
148 <tr>
149 <td colspan="4">
150 <div class="ansibleOptionAnchor" id="return-"></div>
151 <b>applied_response_plans</b>
152 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
153 <div style="font-size: small">
154 <span style="color: purple">list</span>
155 / <span style="color: purple">elements=dictionary</span>
156 </div>
157 </td>
158 <td>always</td>
159 <td>
160 <div>List of response plans applied to the investigation</div>
161 <br/>
162 <div style="font-size: smaller"><b>Sample:</b></div>
163 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[{&#x27;id&#x27;: &#x27;b9e54dd3-d99c-4a17-bfde-17321d973511&#x27;, &#x27;name&#x27;: &#x27;Incident Response Plan&#x27;, &#x27;description&#x27;: &#x27;Standard incident response procedure&#x27;, &#x27;source_template_id&#x27;: &#x27;77b3888b-a25e-4def-89fa-071fdcc10e47&#x27;, &#x27;phases&#x27;: [{&#x27;id&#x27;: &#x27;1ad365e7-ae1e-4023-99c1-eb58dd11b250&#x27;, &#x27;name&#x27;: &#x27;Investigation Phase&#x27;, &#x27;tasks&#x27;: [{&#x27;id&#x27;: &#x27;3226b3dc-a31b-4987-b76c-3cdb32135f37&#x27;, &#x27;name&#x27;: &#x27;Initial Triage&#x27;, &#x27;description&#x27;: &#x27;Perform initial assessment&#x27;, &#x27;status&#x27;: &#x27;started&#x27;, &#x27;owner&#x27;: &#x27;admin&#x27;, &#x27;is_note_required&#x27;: False}, {&#x27;id&#x27;: &#x27;2c73e6c5-35ec-454a-bba0-aa12a3297d56&#x27;, &#x27;name&#x27;: &#x27;Gather Evidence&#x27;, &#x27;description&#x27;: &#x27;Collect relevant logs&#x27;, &#x27;status&#x27;: &#x27;pending&#x27;, &#x27;owner&#x27;: &#x27;unassigned&#x27;, &#x27;is_note_required&#x27;: False}]}]}]</div>
164 </td>
165 </tr>
166 <tr>
167 <td class="elbow-placeholder">&nbsp;</td>
168 <td colspan="3">
169 <div class="ansibleOptionAnchor" id="return-"></div>
170 <b>description</b>
171 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
172 <div style="font-size: small">
173 <span style="color: purple">string</span>
174 </div>
175 </td>
176 <td></td>
177 <td>
178 <div>Description of the response plan</div>
179 <br/>
180 </td>
181 </tr>
182 <tr>
183 <td class="elbow-placeholder">&nbsp;</td>
184 <td colspan="3">
185 <div class="ansibleOptionAnchor" id="return-"></div>
186 <b>id</b>
187 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
188 <div style="font-size: small">
189 <span style="color: purple">string</span>
190 </div>
191 </td>
192 <td></td>
193 <td>
194 <div>The unique ID of the applied response plan instance</div>
195 <br/>
196 </td>
197 </tr>
198 <tr>
199 <td class="elbow-placeholder">&nbsp;</td>
200 <td colspan="3">
201 <div class="ansibleOptionAnchor" id="return-"></div>
202 <b>name</b>
203 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
204 <div style="font-size: small">
205 <span style="color: purple">string</span>
206 </div>
207 </td>
208 <td></td>
209 <td>
210 <div>Name of the response plan</div>
211 <br/>
212 </td>
213 </tr>
214 <tr>
215 <td class="elbow-placeholder">&nbsp;</td>
216 <td colspan="3">
217 <div class="ansibleOptionAnchor" id="return-"></div>
218 <b>phases</b>
219 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
220 <div style="font-size: small">
221 <span style="color: purple">list</span>
222 / <span style="color: purple">elements=dictionary</span>
223 </div>
224 </td>
225 <td></td>
226 <td>
227 <div>List of phases in the applied response plan</div>
228 <br/>
229 </td>
230 </tr>
231 <tr>
232 <td class="elbow-placeholder">&nbsp;</td>
233 <td class="elbow-placeholder">&nbsp;</td>
234 <td colspan="2">
235 <div class="ansibleOptionAnchor" id="return-"></div>
236 <b>id</b>
237 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
238 <div style="font-size: small">
239 <span style="color: purple">string</span>
240 </div>
241 </td>
242 <td></td>
243 <td>
244 <div>The unique ID of the phase</div>
245 <br/>
246 </td>
247 </tr>
248 <tr>
249 <td class="elbow-placeholder">&nbsp;</td>
250 <td class="elbow-placeholder">&nbsp;</td>
251 <td colspan="2">
252 <div class="ansibleOptionAnchor" id="return-"></div>
253 <b>name</b>
254 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
255 <div style="font-size: small">
256 <span style="color: purple">string</span>
257 </div>
258 </td>
259 <td></td>
260 <td>
261 <div>Name of the phase</div>
262 <br/>
263 </td>
264 </tr>
265 <tr>
266 <td class="elbow-placeholder">&nbsp;</td>
267 <td class="elbow-placeholder">&nbsp;</td>
268 <td colspan="2">
269 <div class="ansibleOptionAnchor" id="return-"></div>
270 <b>tasks</b>
271 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
272 <div style="font-size: small">
273 <span style="color: purple">list</span>
274 / <span style="color: purple">elements=dictionary</span>
275 </div>
276 </td>
277 <td></td>
278 <td>
279 <div>List of tasks in the phase</div>
280 <br/>
281 </td>
282 </tr>
283 <tr>
284 <td class="elbow-placeholder">&nbsp;</td>
285 <td class="elbow-placeholder">&nbsp;</td>
286 <td class="elbow-placeholder">&nbsp;</td>
287 <td colspan="1">
288 <div class="ansibleOptionAnchor" id="return-"></div>
289 <b>description</b>
290 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
291 <div style="font-size: small">
292 <span style="color: purple">string</span>
293 </div>
294 </td>
295 <td></td>
296 <td>
297 <div>Description of the task</div>
298 <br/>
299 </td>
300 </tr>
301 <tr>
302 <td class="elbow-placeholder">&nbsp;</td>
303 <td class="elbow-placeholder">&nbsp;</td>
304 <td class="elbow-placeholder">&nbsp;</td>
305 <td colspan="1">
306 <div class="ansibleOptionAnchor" id="return-"></div>
307 <b>id</b>
308 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
309 <div style="font-size: small">
310 <span style="color: purple">string</span>
311 </div>
312 </td>
313 <td></td>
314 <td>
315 <div>The unique ID of the task</div>
316 <br/>
317 </td>
318 </tr>
319 <tr>
320 <td class="elbow-placeholder">&nbsp;</td>
321 <td class="elbow-placeholder">&nbsp;</td>
322 <td class="elbow-placeholder">&nbsp;</td>
323 <td colspan="1">
324 <div class="ansibleOptionAnchor" id="return-"></div>
325 <b>is_note_required</b>
326 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
327 <div style="font-size: small">
328 <span style="color: purple">boolean</span>
329 </div>
330 </td>
331 <td></td>
332 <td>
333 <div>Whether a note is required when completing the task</div>
334 <br/>
335 </td>
336 </tr>
337 <tr>
338 <td class="elbow-placeholder">&nbsp;</td>
339 <td class="elbow-placeholder">&nbsp;</td>
340 <td class="elbow-placeholder">&nbsp;</td>
341 <td colspan="1">
342 <div class="ansibleOptionAnchor" id="return-"></div>
343 <b>name</b>
344 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
345 <div style="font-size: small">
346 <span style="color: purple">string</span>
347 </div>
348 </td>
349 <td></td>
350 <td>
351 <div>Name of the task</div>
352 <br/>
353 </td>
354 </tr>
355 <tr>
356 <td class="elbow-placeholder">&nbsp;</td>
357 <td class="elbow-placeholder">&nbsp;</td>
358 <td class="elbow-placeholder">&nbsp;</td>
359 <td colspan="1">
360 <div class="ansibleOptionAnchor" id="return-"></div>
361 <b>owner</b>
362 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
363 <div style="font-size: small">
364 <span style="color: purple">string</span>
365 </div>
366 </td>
367 <td></td>
368 <td>
369 <div>Owner/assignee of the task. Use <code>admin</code> for the administrator user. Use <code>unassigned</code> when no owner is assigned.</div>
370 <br/>
371 </td>
372 </tr>
373 <tr>
374 <td class="elbow-placeholder">&nbsp;</td>
375 <td class="elbow-placeholder">&nbsp;</td>
376 <td class="elbow-placeholder">&nbsp;</td>
377 <td colspan="1">
378 <div class="ansibleOptionAnchor" id="return-"></div>
379 <b>status</b>
380 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
381 <div style="font-size: small">
382 <span style="color: purple">string</span>
383 </div>
384 </td>
385 <td></td>
386 <td>
387 <div>Current status of the task. Values are <code>pending</code>, <code>started</code>, or <code>ended</code>.</div>
388 <br/>
389 </td>
390 </tr>
391
392
393 <tr>
394 <td class="elbow-placeholder">&nbsp;</td>
395 <td colspan="3">
396 <div class="ansibleOptionAnchor" id="return-"></div>
397 <b>source_template_id</b>
398 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
399 <div style="font-size: small">
400 <span style="color: purple">string</span>
401 </div>
402 </td>
403 <td></td>
404 <td>
405 <div>The ID of the response plan template this was created from</div>
406 <br/>
407 </td>
408 </tr>
409
410 <tr>
411 <td colspan="4">
412 <div class="ansibleOptionAnchor" id="return-"></div>
413 <b>changed</b>
414 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
415 <div style="font-size: small">
416 <span style="color: purple">boolean</span>
417 </div>
418 </td>
419 <td>always</td>
420 <td>
421 <div>Always returns false as this is an info module</div>
422 <br/>
423 </td>
424 </tr>
425 </table>
426 <br/><br/>
427
428
429 Status
430 ------
431
432
433 Authors
434 ~~~~~~~
435
436 - Ron Gershburg (@rgershbu)