
Kestra Plugin ExportById
CertifiedExport flows by id
Kestra Plugin ExportById
Export flows by id
Exports specific flows identified by namespace and id into a ZIP stored in internal storage; returns the stored URI.
type: io.kestra.plugin.kestra.flows.ExportByIdExamples
Export a single flow
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: admin@kestra.io # pass your Kestra username as secret or KV pair
password: "{{ secret('KESTRA_PASSWORD') }}" # pass your Kestra password as secret or KV pair
flows:
- id: my_flow_id
namespace: my.flow.namespace
Export multiple flows from different namespaces
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: admin@kestra.io # pass your Kestra username as secret or KV pair
password: "{{ secret('KESTRA_PASSWORD') }}" # 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-dynamic
Select API authentication
Use either an API token or HTTP Basic (username/password); do not provide both.
io.kestra.plugin.kestra.AbstractKestraTask-Auth
API token for bearer auth
trueAutomatically retrieve credentials from Kestra's configuration if available
The default configuration can be configured globally inside the Kestra configuration file:
- Set
kestra.tasks.sdk.authentication.api-tokento use an API token - Set
kestra.tasks.sdk.authentication.usernameandkestra.tasks.sdk.authentication.passwordfor HTTP basic authentication The Enterprise edition also provides setting a default configuration at the Namespace of Tenant level by an administrator.
Password for HTTP Basic auth
Username for HTTP Basic auth
flows array
Flows to export
List of id/namespace pairs.
io.kestra.sdk.model.IdWithNamespace
kestraUrl string
Override Kestra API endpoint
URL used for calls to the Kestra API. When null, renders {{ kestra.url }} from configuration; if still empty, defaults to http://localhost: 8080. Trailing slashes are stripped before use.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tenantId string
Override target tenant
Tenant identifier applied to API calls; defaults to the current execution tenant.
Outputs
flowsZip string
uriURI of the exported flows ZIP file