ExportById
Export Kestra flows
Exports one or more Kestra flows as a ZIP archive. You can specify flows by their ID and namespace.
yaml
type: "io.kestra.plugin.kestra.flows.ExportById"
Examples
Export a single flow
yaml
id: export_single_flow
namespace: company.team
tasks:
- id: export_flow_by_id
type: io.kestra.plugin.kestra.flows.ExportById
kestraUrl: http://localhost:8080
auth:
username: [email protected] # pass your Kestra username as secret or KV pair
password: Admin1234 # pass your Kestra password as secret or KV pair
flows:
- id: my_flow_id
namespace: my.flow.namespace
Export multiple flows from different namespaces
yaml
id: export_multiple_flows
namespace: company.team
tasks:
- id: export_flows
type: io.kestra.plugin.kestra.flows.ExportById
kestraUrl: https://my-ee-instance.io
auth:
username: [email protected] # pass your Kestra username as secret or KV pair
password: Admin1234 # pass your Kestra password as secret or KV pair
tenantId: main
flows:
- id: flow_one
namespace: prod.data
- id: flow_two
namespace: dev.analytics
- id: flow_three
namespace: common.utils
Properties
auth Non-dynamicAbstractKestraTask-Auth
Authentication information.
kestraUrl string
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
tenantId string
The tenant ID to use for the request, defaults to current tenant.
Outputs
flowsZip string
Format
uri
URI of the exported flows ZIP file
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiToken string
API token.
password string
Password for HTTP Basic authentication.
username string
Username for HTTP Basic authentication.