Query
Search executions with filters
Query
Search executions with filters
yaml
type: io.kestra.plugin.kestra.executions.QueryExamples
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: "{{ secret('KESTRA_USERNAME') }}"
password: "{{ secret('KESTRA_PASSWORD') }}"
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
auth:
username: "{{ secret('KESTRA_USERNAME') }}"
password: "{{ secret('KESTRA_PASSWORD') }}"
timeRange: PT10H # In the last 10 hours
states:
- SUCCESS
fetchType: FETCH # Fetch the results directly in the task output
Properties
auth Non-dynamic
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiTokenstring
autobooleanstring
Default
truepasswordstring
usernamestring
childFilter string
Possible Values
CHILDMAINendDate string
fetchType string
Default
STOREPossible Values
STOREFETCHFETCH_ONENONEflowId string
flowScopes array
SubTypestring
Possible Values
USERSYSTEMkestraUrl string
labels object
SubTypestring
namespace string
page integerstring
size integerstring
Default
10startDate string
states array
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDUNKNOWN_DEFAULT_OPEN_APItenantId string
timeRange string
triggerExecutionId string
Outputs
row object
rows array
size integer
uri string
Format
uri