CrowdStrike SearchHosts

CrowdStrike SearchHosts

Certified
Enterprise Edition

Search CrowdStrike Falcon host device IDs

Searches hosts with the CrowdStrike Falcon Query Language (FQL) and returns matching device IDs (AIDs), which can be passed to GetHost, ContainHost, LiftContainment, or UpdateHostTags. Omitting filter matches every host visible to the API client.

yaml
type: io.kestra.plugin.ee.crowdstrike.hosts.SearchHosts

Search for Windows hosts that have not checked in for a while

yaml
id: search_stale_hosts
namespace: company.team

tasks:
  - id: search_hosts
    type: io.kestra.plugin.ee.crowdstrike.hosts.SearchHosts
    clientId: "{{ secret('CROWDSTRIKE_CLIENT_ID') }}"
    clientSecret: "{{ secret('CROWDSTRIKE_CLIENT_SECRET') }}"
    filter: "platform_name:'Windows'"
    sort: "last_seen.asc"
    limit: 100
Properties

API client ID

Client ID of a CrowdStrike API client with the scopes required by the tasks and triggers being used.

API client secret

Client secret of the CrowdStrike API client. Exchanged for a short-lived OAuth2 Bearer token on every task run and trigger poll; never logged.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaulthttps://api.crowdstrike.com

CrowdStrike API base URL

Base URL of the CrowdStrike Falcon API for your cloud region (for example: https://api.crowdstrike.com for US-1, https://api.us-2.crowdstrike.com for US-2, https://api.eu-1.crowdstrike.com for EU-1, or https://api.laggar.gcw.crowdstrike.com for US-GOV-1). Defaults to the US-1 endpoint. Using the wrong region for your tenant results in 403 Forbidden responses.

FQL filter

CrowdStrike Falcon Query Language expression (for example: platform_name: 'Windows'). Matches every host when omitted.

Default100

Page size

Maximum number of device IDs to return, from 1 to 5000. Defaults to 100.

Default0

Offset

Number of matching hosts to skip, for pagination. Defaults to 0.

Sort order

Sort field and direction (for example: last_seen.desc).

SubTypestring

Matching device IDs (AIDs)

Total number of hosts matching the filter, without pagination