Get a value from a NATS Key/Value bucket.
yaml
type: "io.kestra.plugin.nats.kv.Get"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 *Requiredstring
 Min length 
1The name of the key value bucket.
keys *Requiredarray
 SubType string
The keys of Key/Value pairs.
url *Requiredstring
 Min length 
1URL 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 string
Credentials files authentification
keyRevisions object
 SubType integer
The keys with revision of Key/Value pairs.
password string
Plaintext authentication password
token string
Token authentification
username string
Plaintext authentication username
Outputs
output object
The Key/Value pairs.
