Put
Put
yaml
type: "io.kestra.plugin.elasticsearch.Put"Examples
yaml
id: elasticsearch_put
namespace: company.team
tasks:
- id: put
type: io.kestra.plugin.elasticsearch.Put
connection:
hosts:
- "http://localhost:9200"
index: "my_index"
key: "my_id"
value:
name: "John Doe"
city: "Paris"
yaml
id: elasticsearch_put
namespace: company.team
inputs:
- id: value
type: JSON
defaults: {"name": "John Doe", "city": "Paris"}
tasks:
- id: put
type: io.kestra.plugin.elasticsearch.Put
connection:
hosts:
- "http://localhost:9200"
index: "my_index"
key: "my_id"
value: "{{ inputs.value }}"
Properties
connection *RequiredNon-dynamic
Definitions
io.kestra.plugin.elasticsearch.ElasticsearchConnection
hosts*Requiredarray
SubTypestring
Min items
1basicAuth
io.kestra.plugin.elasticsearch.ElasticsearchConnection-BasicAuth
passwordstring
usernamestring
headersarray
SubTypestring
pathPrefixstring
strictDeprecationModebooleanstring
trustAllSslbooleanstring
index *Requiredstring
contentType string
Default
JSONPossible Values
CBORJSONSMILEYAMLkey string
opType string
Possible Values
INDEXCREATEUPDATEDELETErefreshPolicy string
Default
NONEPossible Values
IMMEDIATEWAIT_UNTILNONErouting string
value object
Outputs
id string
result string
Possible Values
CreatedUpdatedDeletedNotFoundNoOp