yaml
type: "io.kestra.plugin.opensearch.put"
yaml
id: opensearch_put
namespace: company.team

tasks:
  - id: put
    type: io.kestra.plugin.opensearch.Put
    connection:
      hosts:
        - "http://localhost:9200"
    index: "my_index"
    key: "my_id"
    value:
      name: "John Doe"
      city: "Paris"

yaml
id: opensearch_put
namespace: company.team

inputs:
  - id: value
    type: JSON
    defaults: {"name": "John Doe", "city": "Paris"}

tasks:
  - id: put
    type: io.kestra.plugin.opensearch.Put
    connection:
      hosts:
        - "http://localhost:9200"
    index: "my_index"
    key: "my_id"
    value: "{{ inputs.value }}"
Properties
Default JSON
Possible Values
CBORJSONSMILEYAML
Possible Values
INDEXCREATEUPDATEDELETE
Default NONE
Possible Values
IMMEDIATEWAIT_UNTILNONE
Possible Values
CreatedDeletedNoOpNotFoundUpdated
SubType string
SubType string