ExportByIdExportById
ExportByIdCertified

Export Kestra flows.

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"

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

Authentication information.

Authentication used to call the Kestra API. Uses the same credentials as Kestra login: either an API token or HTTP Basic (username/password).

Definitions
apiTokenstring

API token

passwordstring

Password for HTTP basic authentication

usernamestring

Username for HTTP basic authentication

The flows to export

Definitions
idstring
namespacestring

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

The tenant ID to use for the request, defaults to current tenant.

Formaturi

URI of the exported flows ZIP file