Get Get

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

Gets value linked to a key.

Examples

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

yaml
id: get_kv
type: io.kestra.plugin.core.kv.Get
key: myvariable
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
  • Dynamic:
  • 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?