Get
yaml
type: "io.kestra.plugin.nats.kv.Get"
Gets a value from a NATS Key/Value bucket.
Examples
Gets a value from a NATS Key/Value bucket by keys.
yaml
id: nats_kv_get
namespace: company.team
tasks:
- id: get
type: io.kestra.plugin.nats.kv.Get
url: nats://localhost:4222
username: nats_user
password: nats_passwd
bucketName: my_bucket
keys:
- key1
- key2
Gets a value from a NATS Key/Value bucket by keys with revisions.
yaml
id: nats_kv_get
namespace: company.team
tasks:
- id: get
type: io.kestra.plugin.nats.kv.Get
url: nats://localhost:4222
username: nats_user
password: nats_passwd
bucketName: my_bucket
keyRevisions:
- key1: 1
- key2: 3
Properties
bucketName
- Type: string
- Dynamic: ✔️
- Required: ✔️
- Min length:
1
The name of the key value bucket.
keys
- Type: array
- SubType: string
- Dynamic: ✔️
- Required: ✔️
The keys of Key/Value pairs.
url
- Type: string
- Dynamic: ✔️
- Required: ✔️
- Min length:
1
URL to connect to NATS server
The format is (nats://)server_url:port. You can also provide a connection token like so: nats://token@server_url:port
creds
- Type: string
- Dynamic: ✔️
- Required: ❌
Credentials files authentification
keyRevisions
- Type: object
- SubType: integer
- Dynamic: ❌
- Required: ❌
The keys with revision of Key/Value pairs.
password
- Type: string
- Dynamic: ✔️
- Required: ❌
Plaintext authentication password
token
- Type: string
- Dynamic: ✔️
- Required: ❌
Token authentification
username
- Type: string
- Dynamic: ✔️
- Required: ❌
Plaintext authentication username
Outputs
output
- Type: object
- Required: ❌
The Key/Value pairs.
Definitions
Was this page helpful?