host_ids
This lookup returns a list of host IDs (AIDs) which match the search criteria. You can use optional FQL filters in your requests to find host IDs based on specific
Added in version 4.4.0
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
_terms | No | The filter expression that should be used to limit the results using FQL (Falcon Query Language) syntax. See the L(Falcon documentation,https://falcon.crowdstrike.com/documentation/page/c0b16f1b/host-and-host-group-management-apis#qadd6f8f) |
Examples
Section titled “Examples”- name: Print all hosts IDs ansible.builtin.debug: msg: "{{ lookup('crowdstrike.falcon.host_ids', '') }}"
- name: Print all Windows hosts IDs (escaped double quotes) ansible.builtin.debug: msg: "{{ lookup('crowdstrike.falcon.host_ids', 'platform_name:\"Windows\"') }}"
- name: Print all Linux hosts IDs in reduced functionality mode (multiline string) ansible.builtin.debug: msg: > {{ lookup('crowdstrike.falcon.host_ids', 'platform_name:"Linux" + reduced_functionality_mode:"yes"') }}Return Values
Section titled “Return Values”| Key | Type | Description |
|---|---|---|
_raw | - |