Put Put

yaml
type: "io.kestra.plugin.nats.kv.Put"

Puts a Key/Value pair into a NATS Key/Value bucket.

Examples

yaml
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: nats_passwd
    bucketName: my_bucket
    values:
      - key1: value1
      - key2: value2
      - key3:
        - subKey1: some other value

Properties

bucketName

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

The name of the key value bucket.

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

values

  • Type: object
  • Dynamic: ✔️
  • Required: ✔️

The Key/Value pairs.

password

  • Type: string
  • Dynamic: ✔️
  • Required:

Plaintext authentication password

username

  • Type: string
  • Dynamic: ✔️
  • Required:

Plaintext authentication username

Outputs

revisions

  • Type: object
  • SubType: integer
  • Required:

The revision numbers for each key.

Definitions

Was this page helpful?