case_info
Returns details of Falcon cases. Gets cases by ID, or searches for them with an FQL filter or a free text search. With no option, returns every case.
Added in version 4.15.0
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filter | str | No | The FQL filter to search for cases. C(name:‘Phishing investigation’) is an exact, case-sensitive match of the name. A part of the name matches nothing. An exact name filter does not find a name with a single quote or a backslash, also when they are escaped. Use a prefix filter such as C(name:‘Phishing’) with the part of the name before that character. C(name:‘phishing’) matches the names that start with C(phishing). C(status:‘closed’) matches the cases with a status. C(tags:‘malware’) matches the cases with a tag. Join conditions with C(+) (AND). Mutually exclusive with I(ids). | |
ids | list | No | The IDs of the cases to get. An ID that does not exist is left out of the result. An empty list returns no cases. The cases are returned in the order of the IDs. Mutually exclusive with I(filter), I(q), I(sort) and I(limit). | |
limit | int | No | The maximum number of cases to return. With no limit, the module returns every case that matches. Must be 1 or greater. Mutually exclusive with I(ids). | |
q | str | No | The free text to search for in the cases. Mutually exclusive with I(ids). | |
sort | str | No | The property and direction to sort the results by, for example C(created_timestamp.desc) or C(name.asc). Mutually exclusive with I(ids). |
Examples
Section titled “Examples”- name: Get all cases crowdstrike.falcon.case_info:
- name: Get cases by ID crowdstrike.falcon.case_info: ids: - "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d"
- name: Get the case with an exact name (case sensitive) crowdstrike.falcon.case_info: filter: "name:'Phishing investigation'"
- name: Get the cases whose name starts with phishing, newest first crowdstrike.falcon.case_info: filter: "name:*'phishing*'" sort: created_timestamp.desc
- name: Get the 10 first closed cases, sorted by name crowdstrike.falcon.case_info: filter: "status:'closed'" sort: name.asc limit: 10
- name: Get the cases with a tag crowdstrike.falcon.case_info: filter: "tags:'malware'"
- name: Search the cases for a text crowdstrike.falcon.case_info: q: phishingReturn Values
Section titled “Return Values”| Key | Type | Description |
|---|---|---|
cases | list | The cases that match the IDs, the filter or the search. An empty list when nothing matches. |