Get Get

yaml
type: "io.kestra.plugin.core.kv.Get"

Gets value linked to a key.

Examples

Get value for my_variable key in dev namespace and fail if it's not present.

yaml
id: kv_store_get
namespace: company.team

tasks:
  - id: kv_get
    type: io.kestra.plugin.core.kv.Get
    key: my_variable
    namespace: dev # the current namespace of the flow will be used by default
    errorOnMissing: true

Properties

errorOnMissing

  • Type: boolean
  • Dynamic:
  • Required: ✔️
  • Default: false

Whether to fail if there is no value for the given key.

key

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The key for which to get the value.

namespace

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default: {{ flow.namespace }}

The namespace on which to get the value.

Outputs

value

  • Type: object
  • Required:

Value retrieve for the key.

This can be of any type and will keep the same as when it was set.

Definitions

Was this page helpful?