
NATS Put
CertifiedPut values into NATS Key/Value bucket
NATS Put
Put values into NATS Key/Value bucket
Writes one or more Key/Value entries to an existing NATS bucket. Values are rendered, serialized to JSON, and the resulting revisions are returned.
type: io.kestra.plugin.nats.kv.PutExamples
id: nats_kv_put
namespace: company.team
tasks:
- id: put
type: io.kestra.plugin.nats.kv.Put
url: nats://localhost:4222
username: nats_user
password: "{{ secret('NATS_PASSWORD') }}"
bucketName: my_bucket
values:
key1: value1
key2: value2
key3:
subKey1: some other value
Properties
bucketName *Requiredstring
1Bucket name
Rendered bucket identifier that must already exist.
url *Requiredstring
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
values *Requiredobject
Values to write
Map of keys to values rendered then serialized to JSON before being stored.
creds string
Credentials files authentification
password string
Plaintext authentication password
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
token string
Token authentification
username string
Plaintext authentication username
Outputs
revisions object
Revision numbers
Revision returned by NATS for each written key.