Kestra Plugin NamespacesWithFlows

Kestra Plugin NamespacesWithFlows

Certified

List distinct namespaces

Returns distinct namespaces that contain flows, optionally filtered by prefix.

yaml
type: io.kestra.plugin.kestra.namespaces.NamespacesWithFlows

List all distinct namespaces

yaml
id: distinct_all_namespaces
namespace: company.team

tasks:
  - id: list_namespaces
    type: io.kestra.plugin.kestra.namespaces.NamespacesWithFlows
    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

List distinct namespaces with a specific prefix

yaml
id: distinct_prefixed_namespaces
namespace: company.team

tasks:
  - id: list_prefixed_namespaces
    type: io.kestra.plugin.kestra.namespaces.NamespacesWithFlows
    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
    prefix: dev
    tenantId: mytenant
Properties

Select API authentication

Use either an API token or HTTP Basic (username/password); do not provide both.

Definitions
apiTokenstring

API token for bearer auth

autobooleanstring
Defaulttrue

Automatically 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-token to use an API token
  • Set kestra.tasks.sdk.authentication.username and kestra.tasks.sdk.authentication.password for HTTP basic authentication The Enterprise edition also provides setting a default configuration at the Namespace of Tenant level by an administrator.
passwordstring

Password for HTTP Basic auth

usernamestring

Username for HTTP Basic auth

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.

Reference (ref) of the pluginDefaults to apply to this task.

Namespace prefix

Defaults to empty string to include all namespaces.

Override target tenant

Tenant identifier applied to API calls; defaults to the current execution tenant.

SubTypestring

A list of distinct Kestra namespaces