
Query
Query
yaml
type: "io.kestra.plugin.kestra.executions.Query"Examples
yaml
id: search_executions_by_label
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.kestra.executions.Query
kestraUrl: http://localhost:8080
labels:
key: value
auth:
username: admin@kestra.io # pass your Kestra username as secret or KV pair
password: Admin1234 # pass your Kestra password as secret or KV pair
fetchType: STORE # Store the results in a file
yaml
id: search_successful_executions
namespace: company.team
tasks:
- id: search_executions
type: io.kestra.plugin.kestra.executions.Query
kestraUrl: http://localhost:8080
timeRange: PT10H # In the last 10 hours
states:
- SUCCESS
auth:
username: admin@kestra.io # pass your Kestra username as secret or KV pair
password: Admin1234 # pass your Kestra password as secret or KV pair
fetchType: FETCH # Fetch the results directly in the task output
Properties
authNon-dynamic
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiTokenstring
passwordstring
usernamestring
childFilterstring
Possible Values
CHILDMAINUNKNOWN_DEFAULT_OPEN_APIendDatestring
Format
date-timefetchTypestring
Default
STOREPossible Values
STOREFETCHFETCH_ONENONEflowIdstring
flowScopesarray
SubTypestring
Possible Values
USERSYSTEMUNKNOWN_DEFAULT_OPEN_APIkestraUrlstring
labelsobject
SubTypestring
namespacestring
pageintegerstring
sizeintegerstring
Default
10startDatestring
Format
date-timestatesarray
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDUNKNOWN_DEFAULT_OPEN_APItenantIdstring
timeRangestring
Format
durationtriggerExecutionIdstring
Outputs
rowobject
rowsarray
sizeinteger
uristring
Format
uri