Gets value linked to a key.
yaml
type: "io.kestra.plugin.core.kv.Get"
Get value for my_variable
key in dev
namespace and fail if it's not present. Note that you can accomplish the same using the kv()
Pebble function, e.g. {{kv('my_variable')}}
.
yaml
id: kv_store_get
namespace: company.team
tasks:
- id: kv_get
type: io.kestra.plugin.core.kv.Get
key: my_variable
namespace: company # the current namespace is used by default
errorOnMissing: true
Dynamic
YES
The key for which to get the value.
Dynamic
YES
Default
{{ flow.namespace }}
The namespace on which to get the value.
Dynamic
YES
Default
false
Whether to fail if there is no value for the given key.
Value retrieve for the key.
This can be of any type and will keep the same as when it was set.