Skip to content

case

Create and update Falcon cases. The same task creates the case when it is missing and updates it when it is different. The API cannot delete a case. To end the work on a case, set I(status=closed). Closing a case does not change the alerts in it. Use the alerts API to close them.

Added in version 4.15.0

ParameterTypeRequiredDefaultDescription
alertslistNoThe composite IDs of the alerts to add to the case as evidence. The module only adds alerts. It does not remove an alert that is not in this list.
assigned_to_user_uuidstrNoThe UUID of the user that the case is assigned to. An empty string removes the assignee.
descriptionstrNoThe description of the case. An empty string clears the description.
idstrNoThe ID of the case to update. The module fails when no case has this ID. With I(id), I(name) is the new name of the case.
namestrNoThe name of the case. Required to create a case. With no I(id), the module finds the case by this exact, case-sensitive name. It creates the case when no case has this name, and updates it when one case has it. It fails when more than one case has this name; give I(id) in that case. For a name with a single quote or a backslash, the module searches with the part of the name before that character, then compares the full names. It fails when the name starts with one of these characters; give I(id) in that case. The name search does not see a new case for about 20 seconds. A later task in the same play that changes this case should use the I(id) from the C(case) return value.
purge_tagsboolNofalseRemove the tags of the case that are not in I(tags). With I(purge_tags=true) and no I(tags), the module does not change the tags.
severityintNoThe severity of the case, from 1 to 100. Required to create a case.
statusstrNoThe status of the case. A new case has the status C(new) when this option is not set.
tagslistNoThe tags of the case. Tags are case sensitive. The module adds the tags that the case does not have. With I(purge_tags=true), the module also removes the tags that are not in this list.
- name: Create a case with an alert as evidence
crowdstrike.falcon.case:
name: "Phishing investigation"
description: "Investigate the phishing alerts of the finance team"
severity: 50
tags:
- phishing
alerts:
- "0123456789abcdef0123456789abcdef:ind:fedcba9876543210fedcba9876543210-123456789012345"
register: new_case
- name: Set the status to in_progress and add tags, by ID
crowdstrike.falcon.case:
id: "{{ new_case.case.id }}"
status: in_progress
tags:
- finance
- name: Assign the case to a user
crowdstrike.falcon.case:
id: "{{ new_case.case.id }}"
assigned_to_user_uuid: "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d"
- name: Remove the assignee of the case
crowdstrike.falcon.case:
id: "{{ new_case.case.id }}"
assigned_to_user_uuid: ""
- name: Close the case
crowdstrike.falcon.case:
id: "{{ new_case.case.id }}"
status: closed
KeyTypeDescription
casedictThe case after the change, read again from the API. In check mode, the current case, or the wanted values with no C(id) when the case does not exist.